0

I've got a Codeigniter 3 site where all my routes work except my home page route, which is like so:

<?php
$route['default_controller'] = "front/homepage";
?>

If I create a new route as below I can access it as "/home" but nothing works for index. I get an error in my log as 404 Page Not Found: /index, in my config i have index set to blank.

<?php
$route['home'] = "front/homepage";
?>

Any ideas?

Thanks

1 Answer 1

1

This is no-longer supported in Codeigniter since V2 due to it being a bug in the routing logic.

http://www.codeigniter.com/userguide3/installation/upgrade_300.html#directories-and-default-controller-404-override

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.