how to redirect from CI index.php to folder/index.php? |
[eluser]qwertyjjj[/eluser]
[quote author="porquero" date="1329408480"]Are you sure? Read Tutorial - Static pages: Routing http://ellislab.com/codeigniter/user-gui...pages.html[/quote] So, I did this in routes: $route['default_controller'] = "Contr_redirect"; I made a controller called Contr_redirect with: <?php class Contr_redirect extends Controller{ function index() { redirect('catalog/index.php', 'location'); } } ?> However, I get a 404 error when going to http://localhost |
Welcome Guest, Not a member yet? Register Sign In |