我已經安裝在我的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