0
我上傳了一個使用codeigniter開發的網站。並且在應用.htaccess之後,它不能與index.php一起工作,並且在沒有index.php的情況下工作正常。Codeigniter:URL問題
請幫我看看有沒有index.php的網站。
我上傳了一個使用codeigniter開發的網站。並且在應用.htaccess之後,它不能與index.php一起工作,並且在沒有index.php的情況下工作正常。Codeigniter:URL問題
請幫我看看有沒有index.php的網站。
,因爲你沒有具體的Apache的版本或配置也許你可以試試這個:
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]
如果它不工作然後嘗試這一個
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
你檢查Apache日誌,也許國防部重寫未啓用? – RageZ 2011-12-23 11:30:33
請你幫我查看一下godaddy服務器。 – user985361 2011-12-23 11:31:39
您是否遵循Codeigniter文檔中的[說明](http://codeigniter.com/user_guide/general/urls.html)? – 2011-12-23 11:32:00