CodeIgniter Forums

Full Version: index.php being arbitrarily inserted into urls
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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?

El Forum

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