• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing index.php from links generated by Ci [SOLVED]

#1
[eluser]lenswipe[/eluser]
Hi guys

Im new here so if this has already been posted and solved i apologise, however ive noted that CI has a tendancy to put /index.php/ in the links it spits out, what i mean by that is that i thas when it creates say a form it has the form action as:

<form action="domain.com/index.php/blog">

ive googled in various places and all i can come up with is a .htaccess tutorial at best(which doesnt really prevent it spitting this out).

Note: I do have URL Rewriting working, so if you were considering posting about .htaccess - dont bother, ive already been there Smile

Regards

-Robert

#2
[eluser]lenswipe[/eluser]
Solved it guys with this helpful post here: http://ellislab.com/forums/viewthread/65085/ from Michael Wales - thanks Michael!


To cut a long story short, you need to go into the config.php file and change:
Code:
$config['index_page'] = 'index.php';
to
Code:
$config['index_page'] = '';

#3
[eluser]InsiteFX[/eluser]
Guess you didn't read the CodeIgniter User Guide! LOL

InsiteFX

#4
[eluser]lenswipe[/eluser]
it would seem that way... Smile


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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