Welcome Guest, Not a member yet? Register   Sign In
Redirect adding index.php
#1

[eluser]spyro[/eluser]
I have added the mod_rewrite rules that effectively rid my application url's of index.php. The problem is the when I use redirect on my login page it sticks index.php back in the url on redirect. How do I keep it from doing this?
#2

[eluser]meigwilym[/eluser]
Are you using site_url() in the redirect? If so, then check your config/config.php and ensure that line 26 looks like this

Code:
$config['index_page'] = "";

If not, then please provide some more info.

Mei
#3

[eluser]spyro[/eluser]
Thanks. Changing the config variable is exactly what I needed. I wasn't aware that you could just leave the variable blank.




Theme © iAndrew 2016 - Forum software by © MyBB