CodeIgniter redirect problem

#6
[eluser]Aerospace[/eluser]
[quote author="Georgi Budinov" date="1281731258"]Guys he wants something else ... He managed to remove the index.php already ...

@Aerospace

Paste this in the constructor of your home controller and should be ok

Code:
if($this->uri->total_segments()==1)
{
    $this->load->helper('url');
    redirect(current_url().'/index');
}
[/quote]

Now it goes to http://www.hassanc.co.uk/home/index/index Sad

I'm thinking about moving CodeIgniter to the root and then making a function called home() instead

But thanks for your help anyway Smile


Messages In This Thread
CodeIgniter redirect problem - by El Forum - 08-13-2010, 07:03 AM
CodeIgniter redirect problem - by El Forum - 08-13-2010, 08:30 AM
CodeIgniter redirect problem - by El Forum - 08-13-2010, 08:31 AM
CodeIgniter redirect problem - by El Forum - 08-13-2010, 08:41 AM
CodeIgniter redirect problem - by El Forum - 08-13-2010, 09:27 AM
CodeIgniter redirect problem - by El Forum - 08-13-2010, 10:31 AM
CodeIgniter redirect problem - by El Forum - 08-14-2010, 07:56 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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