Part of the EllisLab Network
   
 
newbie Q: how to remove index.php from url helper generated links?
Posted: 08 March 2010 08:31 AM   [ Ignore ]  
Summer Student
Total Posts:  2
Joined  02-19-2009

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.

Profile
 
 
Posted: 08 March 2010 08:51 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  303
Joined  06-25-2007

in application/config/config.php file

$config['index_page'"index.php"

change it to

$config['index_page'""
 Signature 

Md. Aminul Islam
http://www.shopno-dinga.com (CodeIgnited Site)

Profile
 
 
Posted: 08 March 2010 07:22 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  2
Joined  02-19-2009

Thanks for the quick reply - works like a charm of course. Easy when you know how.  tongue rolleye

Profile