【发布时间】:2013-10-24 09:50:28
【问题描述】:
我将永久链接结构更新为 /%postname%/,这将我的 .htaccess 更新为:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
但我仍然在页面上收到 404 错误。我还需要更改其他设置吗?
编辑:如果它有助于 apache 日志似乎直接在永久链接文件夹中查找。即:
[Wed Oct 16 11:12:32 2013] [error] [client xx.xx.xx.xxx] File does not exist: /var/www/exampledomain/news, referer: http://exampledomain.com/
【问题讨论】:
-
也许你应该接受一个答案。
-
查看这篇文章以解决您的问题。 phparticles.com/wordpress/…
标签: wordpress permalinks