WordPress 给了我 404 页面,除主页之外的所有页面都找不到 [英] WordPress is giving me 404 page not found for all pages except the homepage
问题描述
我突然转到我的 WordPress 网站,所有页面都给我一个 404 页面未找到页面.我假设问题出在永久链接结构上,我可以发誓我没有碰过它.永久链接设置为月份和名称".
All of a sudden I go to my WordPress website and all the pages give me a 404 page not found page. I'm assuming the problem lies with the permalink structure, which I could swear I did not touch. The permalink setting is on "month and name."
我在网上研究过这个问题的类似实例,其中很多都与 .htaccess
文件有关?我试图找到,但我不能.也许它以某种方式被删除了?它应该位于哪里.
I've researched similar instances of this problem online and a lot of it has to do with the .htaccess
file? I tried finding, but I can't. Perhaps it got deleted somehow? Where is it supposed to be located.
任何建议都会有所帮助
当然我可以看到隐藏文件.
and of course I can see hidden files.
推荐答案
.htaccess 是一个隐藏文件,因此您必须将所有文件设置为在您的 ftp 中可见.
.htaccess is a hidden file, so you must set all files as visible in your ftp.
我建议您将永久链接结构恢复为默认值 ( ?p=ID ),以便确保 .htaccess 是问题所在.
I suggest you return your permalink structure to default ( ?p=ID ) so you ensure that .htaccess is the problem.
之后,您可以简单地再次设置月份和名称"结构,看看它是否有效.
After that, you could simply set "month and name" structure again, and see if it works.
PS:你升级到3.1了吗?我见过一些人在这种情况下遇到插件问题.
PS: Have you upgraded to 3.1? I've seen some people with plugin issues in this case.
这篇关于WordPress 给了我 404 页面,除主页之外的所有页面都找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!