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] But all that means that I should set a controller called index.php with a function that has a redirect. I then have a view called index.php but it essentially does nothing. However, when I go to localhost/index.php I get a blank page ? Should I be setting this in the routes.php file: $route['default_controller'] = 'pages/view'; but make it $route['default_controller'] = 'index.php'; Can the default controller not be a php page, does it have to be /somefolder/index ? |
Welcome Guest, Not a member yet? Register Sign In |