• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
index.php being arbitrarily inserted into urls

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.