我最近搬到了godaddy Linux主機,而.htaccess似乎沒有工作。是否有任何需要爲godaddy完成的設置,因爲.htaccess在本地xampp服務器以及hostek server上工作。我得到「404 Not Found」錯誤消息。我使用的CodeIgniter-2.2.1框架也有在php.ini文件中檢查加載模塊中的mod_rewrite未在服務器端啓用。Codeigniter htaccess不能在godaddy上工作?
我的htaccess文件位於我的應用程序部署的根目錄。
RewriteEngine On
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
請建議。
的[問題可能重複使用CodeIgniter和URI上GoDaddy服務器](http://stackoverflow.com/questions/5725358/problem-with-codeigniter-and-uri-on-godaddy-serve rs) – user4419336
登陸頁面也顯示'404'錯誤? – Girish
我已經嘗試給出了堆棧溢出討論的解決方案,它不適合我。因此,我分享我的應用程序設置和httaccess來找出問題。 –