由於一些奇怪的原因,我試圖在我的WordPress安裝中訪問wp-content/plugins /目錄下的每個文件並返回一個WordPress基於404錯誤。該文件顯示在目錄列表...在wp-content/plugins /目錄中以.php結尾的文件被視爲未找到
這樣的:http://technologysolved.ca/wp-content/plugins/store-locator/js/
其他文件類型(的.js和.html)被點擊它們正常工作時。但是當一個文件如:store-locator-js.php被點擊時,WordPress會返回404樣式錯誤。
這發生在插件目錄和下面的所有.php文件中。
我相信這可能是某種.htaccess更多的mod_rewrite錯誤,但我不確定。
我的.htaccess文件是以下...
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
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]
任何幫助,將不勝感激。謝謝!
您是否使用它作爲分發PHP文件的下載方式? – MikeSchinkel 2010-11-18 19:37:27