1
我的第一個(新鮮的)Wordpress安裝及其多站點安裝。一切都很順利,直到WordPress安裝過程中產生的下面的代碼放在一個.htaccess文件:Wordpress多站點安裝生成的.htaccess失敗
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule^- [L]
RewriteRule . index.php [L]
哪個及時作出了整個網站由一個403 Forbidden錯誤提示我無法使用。現在據我所知,一切都應該正確的目錄和文件權限。另外,我裝成根等
我一直在追捕在谷歌的解決方案,發現(這個特殊問題),某些主機可能需要在環繞整個的.htaccess:
<IfModule mod_rewrite.so>
...
</IfModule>
它現在在根索引(index.php)上工作並顯示該網站,但只要我點擊任何測試帖子(更改地址)就會失敗。
所以我想我卡住了,任何幫助將不勝感激!
apache是否有權限讀取.htaccess? .htaccess必須有644個權限 – elpeter