.htacces is not working |
[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
[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.
[eluser]web-johnny[/eluser]
I use in general this htaccess that works everywhere: Code: <IfModule mod_rewrite.c> Code: RewriteBase / Code: RewriteBase /myapp/
[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. |
Welcome Guest, Not a member yet? Register Sign In |