Hi All,
I recently got some space off Hostgator and the .htaccess file that I use for my CI apps on other servers does not seems to work on Hostgator.
I searched Hostgator forums and found out that they use:
HostGator uses PHPSuExec/SuPHP
Would that make a difference in the .httaccess rules are written. Here is the .htaccess file that I am using.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|public|tmp|images|captcha|js|css|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
RewriteRule /favicon\.ico /images/favicon.ico [L]
SetEnv mod_rewrite_enabled 1
</IfModule>
<IfModule !mod_rewrite.c>
SetEnv mod_rewrite_enabled 0
</IfModule>
The problem I have noticed is that after removing ‘index.php’ from the config file, when I try to access other controllers, it always takes me back to the homepage. But if I add ‘/index.php/controller’ then it works although ‘index.php’ has been removed from the config file.
Any ideas what might be wrong or anyone here who is on Hostgator and using .htaccess
Many thanks
Cheers
fry
