【发布时间】:2013-09-26 03:13:00
【问题描述】:
我刚刚将一个 Wordpress 网站移到了新主机上。但是当我转到除 HOME 页面之外的任何页面时,我得到了这个错误:
Not Found
The requested URL /about was not found on this server.
Apache/2.2.16 (Debian) Server at 176.xx.yy.zz Port 80
我将永久链接设置更改为默认,这使 URL 看起来像 mysite.com/?page_id=5 并且页面显示正常。所以问题不在我的代码中。
我的第一个猜测是 mod_rewrite 未启用。但phpinfo() 告诉我mod_rewrite 已正确加载。
我的 .htaccess 是自动生成的,看起来像:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /beta-test/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /beta-test/index.php [L]
</IfModule>
# END WordPress
有什么办法吗?
谢谢
【问题讨论】:
标签: wordpress