CodeIgniter Forums
index.php being arbitrarily inserted into urls - 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: index.php being arbitrarily inserted into urls (/showthread.php?tid=43816)



index.php being arbitrarily inserted into urls - El Forum - 07-24-2011

[eluser]zulubanslee[/eluser]
After my users login, they end up here
http://example.com/index.php/users/loginuser

I want them to go here:
http://example.com/users/loginuser


This is what I have in my .htaccess
Code:
RewriteEngine on  
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)  
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]

Is there anything else that needs to be added to .htaccess?


index.php being arbitrarily inserted into urls - El Forum - 07-24-2011

[eluser]zulubanslee[/eluser]
oh nm. Just prefix base_url() to every thing .