CodeIgniter Forums
routes not working - 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: routes not working (/showthread.php?tid=18480)

Pages: 1 2


routes not working - El Forum - 05-08-2009

[eluser]Thorpe Obazee[/eluser]
Try set your routing to lowercase

Code:
$route['info'] = 'homepage/info';
or

Code:
<?= anchor('info','Information');?>



routes not working - El Forum - 05-08-2009

[eluser]learning_php[/eluser]
Hi,

I have tried both with the same error?

Thanks


routes not working - El Forum - 05-08-2009

[eluser]Thorpe Obazee[/eluser]
ermm.. you post too fast Smile

Try the second one

Code:
<?= anchor('info','Information');?>



routes not working - El Forum - 05-08-2009

[eluser]learning_php[/eluser]
Hi,

sorry

i have my link now set to
Code:
<li>&lt;?= anchor('info','Information');?&gt;</li>
and my route set to
Code:
$route['info'] = "homepage/Info";
and i get a 404? could it something else?


routes not working - El Forum - 05-08-2009

[eluser]Thorpe Obazee[/eluser]
It probably is. Can you confirm that homepage/info does exist or doesn't throw a 404 when you browse homepage/info?


routes not working - El Forum - 05-08-2009

[eluser]learning_php[/eluser]
Hi,

if i go towww.wesayido.co.uk/homepage/infoif i go to
i get a 404 but http://www.wesayido.co.uk/index.php/homepage/info/index i get the page.


routes not working - El Forum - 05-08-2009

[eluser]Thorpe Obazee[/eluser]
http://www.wesayido.co.uk/index.php/homepage/info

http://www.wesayido.co.uk/index.php/homepage/info/index

both work

you forgot to put index.php on the first link.

I'm getting weird vibes on this thing Sad . Anyway, I'm off to a long weekend. Good luck.


routes not working - El Forum - 05-08-2009

[eluser]learning_php[/eluser]
Hi,

I got it working on my localhost re-uploaded to the server and now when i click any link the url is correct but is displays the homepage?www.wesayido.co.uk