Default route problem - 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: Default route problem (/showthread.php?tid=53149) |
Default route problem - El Forum - 07-12-2012 [eluser]Perkin5[/eluser] [SOLVED ]I am developing a site www.trianondesigns.co.uk The default controller is 'site' and I've put that in the config/routes.php file. I've noticed that if I go to this url: www.trianondesigns.co.uk/site/home the site comes up OK but if I just go to www.trianondesigns.co.uk I get a 404. my .htaccess looks like this Code: #Options FollowSymLinks which works for other sites. Can anyone shed any light? Default route problem - El Forum - 07-12-2012 [eluser]skunkbad[/eluser] site/home would indicate that you have a home method. You default route would need to be site/home not site. Default route problem - El Forum - 07-12-2012 [eluser]Perkin5[/eluser] Sometimes my stupidity amazes even me! I looked everywhere but the obvious. Many thanks for sorting me out. Default route problem - El Forum - 07-12-2012 [eluser]InsiteFX[/eluser] Also if your using CI 2.+ then you no longer need these, CI protects them now with .htaccess files in the folders. Code: #Removes access to the system folder by users. Default route problem - El Forum - 07-12-2012 [eluser]Perkin5[/eluser] Many thanks for that too - new to me! So now I know:-) |