Welcome Guest, Not a member yet? Register   Sign In
newbie Q: how to remove index.php from url helper generated links?
#1

[eluser]Unknown[/eluser]
Hi,

I've successfully removed the - index.php - from the code-igniter url's following the instructions for a suitable .htaccess file. My problem now is that the url's generated by the url helper's anchor function still have the the index.php as part of the address - and so they don't work.

I figure there's a config file somewhere that needs to be changed but so far I haven't been able to locate it - or locate any advice on what to do.

Thanks for your help.
#2

[eluser]Sumon[/eluser]
in application/config/config.php file
Code:
$config['index_page'] = "index.php";
change it to
Code:
$config['index_page'] = "";
#3

[eluser]Unknown[/eluser]
Thanks for the quick reply - works like a charm of course. Easy when you know how. %-P




Theme © iAndrew 2016 - Forum software by © MyBB