CodeIgniter Forums
URL Helper redirect - 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: URL Helper redirect (/showthread.php?tid=5332)



URL Helper redirect - El Forum - 01-17-2008

[eluser]atomless[/eluser]
Hi,

I've been using the URL Helper redirect but can't seem to figure out how to stop it from including index.php in the url - I am using the mod rewrite rule from the CI user guide and it seems to be working fine but as soon as I use the URL helper to redirect the index.php segment is back there in the url and no matter how I specify the target in the first redirect param I alwasy seem to get the index.php included in the url.

Anyone know how to redirect without adding in the index.php segment?

Many thanks,

James


URL Helper redirect - El Forum - 01-17-2008

[eluser]tonanbarbarian[/eluser]
make sure your index_page config item is set correctly
Code:
$config['index_page'] = '';