.htacces is not working - 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: .htacces is not working (/showthread.php?tid=54407) |
.htacces is not working - El Forum - 09-07-2012 [eluser]sonu gautam[/eluser] Hi All, I am trying to hide the index.php with .htaccess, but it's not working even i changed in config.php Code: $config['index_page'] = ""; i am trying to access my controller by the follwoing url http://ip/myapp/dashboard/userpage but i am not able to access this page it always show me "404 not found error". my htacces file is as Code: RewriteEngine on but if i make $config['index_page'] to $config['index_page'] = 'index.php' and try to access my page by http://ip/myapp/index.php/dashboard/userpage than it's working fine. Is there something that we are doing wrong? Please suggest me Thanks .htacces is not working - El Forum - 09-07-2012 [eluser]Aken[/eluser] Remove the RewriteBase, or take /myapp/ out of the RewriteRule. It should be one or the other. And make sure your .htaccess is in the same spot as your index.php - you should've added a new one there, not modify one already in /application or /system folder. .htacces is not working - El Forum - 09-08-2012 [eluser]web-johnny[/eluser] I use in general this htaccess that works everywhere: Code: <IfModule mod_rewrite.c> Code: RewriteBase / Code: RewriteBase /myapp/ .htacces is not working - El Forum - 09-09-2012 [eluser]sonu gautam[/eluser] Thanks for reply i follow your instruction but still it's not working see my upgraded .htacces Code: <IfModule mod_rewrite.c> and my project structure is look like this: Code: website_folder - but still i am getting 404 error page. |