我已经安装在我的Apache2服务器的wordpress网站,但所有的固定链接无法正常工作(404未找到)是由WPWordPress的阿帕奇固定链接无法正常工作(404错误)
# 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
产生 我的.htaccess我此网站的conf文件:
<Directory /home/sergey/siteName>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
anythingfromthoseanswersdoesnot帮我
谢谢。
UPD:
感谢贾斯汀Iurman的评论。 设置了AllowOverride所有在我的conf解决问题:)
首先,你是否启用了'mod_rewrite'?然后,你已经定义了一个'RewriteBase',所以你不需要在'index.php'之前的第二个'RewriteRule'中引导斜杠。最后,在conf中通过'AllowOverride All'更改'AllowOverride None' –
在这种情况下,这个域的Apache错误日志的输出将会很有帮助。另外,您可以打开日志进行重写。 http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritelog来自日志的输出可能会有帮助 - 如果您无法自己弄清楚问题中日志的输出结果。 – meberhard