我工作的Conrete5網站最近在所有管理頁面上都開發了一個「沒有輸入文件指定」的問題。問題的根源似乎是管理頁面在URL中有一個不必要的/index.php。 I.E.Concrete5 admin site - 沒有指定輸入文件
www.example.com/index.php/login/do_login......
如果的index.php部分從URL中移除的網頁將加載(儘管所有引用的文件仍然會有的index.php因此無法加載)。
我具體運行在一個子目錄中,但頁面URL來自根例如
www.example.com/concrete-page-title...
這是我的根目錄中的.htaccess文件,將具體的請求傳遞給具體的子目錄。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.example.co.uk/$1/ [R=301,L]
RewriteCond %{HTTP_HOST} ^example.co.uk$
RewriteRule ^/?(.*)$ http://www.example.co.uk/$1 [R=301,L]
# redirect concrete
RewriteCond %{REQUEST_URI} !^/concrete
# permit normal access to wordpress installation
RewriteCond %{REQUEST_URI} !^/news
RewriteRule ^(.*)$ concrete/$1 [L]
</IfModule>
我打開了漂亮的網址,這裏是我的具體子目錄(/具體)中的.htaccess文件。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
旁註: cgi.fix_pathinfo=1
(已更改爲0,沒有變化)
而且該網站沒有與GoDaddy主辦。一直是一個公平的
的網站,而現在沒有更新,儘管我擺弄我沒有成功,因此任何建議,非常歡迎。
有你在這裏簽出喬丹利的評論:HTTP:// WWW .concrete5.org/community/forums/chat/no-input-file-specified1/ – tofraser
不幸的是,我已經嘗試了所有這些規則幾次:( – osnoz