CodeIgniter Forums
.htaccess and cPanel servers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: .htaccess and cPanel servers (/showthread.php?tid=15383)



.htaccess and cPanel servers - El Forum - 02-02-2009

[eluser]EEssam[/eluser]
Hi,

I'm using cPanel and the following .htaccess from the docs is only working when I place the CI app in a folder, it's not working when I put the app directly in public_html:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

http://ellislab.com/codeigniter/user-guide/general/urls.html

Please help. Thanks.


.htaccess and cPanel servers - El Forum - 02-02-2009

[eluser]Tom Schlick[/eluser]
try the solutions on here

http://codeigniter.com/wiki/mod_rewrite/

or try searching in the forums there are like 45890475983457 posts about this that will be able to help