Codeigniter htaccess不工作godaddy? [英] Codeigniter htaccess not working on godaddy?
问题描述
我最近搬到godaddy Linux主机,.htaccess似乎不工作。有什么设置需要做的Godaddy,因为.htaccess是在本地xampp服务器以及hostek服务器上工作。我得到404未找到错误消息。我使用CodeIgniter-2.2.1框架也我
我的htaccess文件位于我的应用程序部署的根目录下。
RewriteEngine On
RewriteCond $ 1!^(index\.php | resources | robots\.txt)
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule ^(。*)$ index.php / $ 1 [L,QSA]
请建议。
解决方案为我:
RewriteEngine On
RewriteCond $ 1!^(index\.php | resources | robots \。 txt)
RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond%{REQUEST_FILENAME}!-d
RewriteRule ^(。*)$ index.php?/ $ 1 [L,QSA]
I recently moved to godaddy Linux hosting and the .htaccess doesn't seem to work. Are there any settings which need to be done for godaddy because the .htaccess was working on local xampp server as well as hostek server.I am getting "404 Not Found" error message.i am using CodeIgniter-2.2.1 framework also i have check mod_rewrite in Loaded Modules in php.ini file was not found enable from server side .
My htaccess file located on root directory where my application is deployed.
RewriteEngine On RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Please suggest.
解决方案This is work for me:
RewriteEngine On RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
这篇关于Codeigniter htaccess不工作godaddy?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!