這工作正常,在localhost: 而是由其他的我託管的網站(由Hostinger.fr)htaccess的在MVC架構託管網站
RewriteBase/
RewriteEngine On
RewriteCond expr "%{REQUEST_URI} -strmatch '*admin/*'"
RewriteRule (.*) $1 [L]
RewriteCond expr "%{REQUEST_URI} -strmatch '*journal/*'"
RewriteRule (.*) $1 [L]
RewriteRule (.*) webroot/$1 [L]
這些線路不能正常工作遵循(處理後) htaccess的走向Web根目錄目錄:
RewriteBase/
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) index.php/$1 [L]
它使用如的index.php在根目錄目錄存在但不顯示內部頁給我看第一頁。 我使用MVC結構來編碼站點,並且調用的程序沒有直接指示 通過單擊index.php頁面顯示的菜單中的選項,它僅向我顯示一個空白頁面,其中顯示消息「No input file specified。 「 沒有調用webroot index.php(像在第一次),繼續開發真正的程序來調用。
任何人都可以好心地建議我在.htaccess中需要做什麼?
NB:Hostinger希望這樣「改寫基地/」命令必須放置在
謝謝你的研究線索,但 我已經驗證了他們,Hostinger的一切都很好。 建議用於htaccess文件第一行的命令只會導致錯誤500 –