CodeIgniter Forums
$route config - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: $route config (/thread-42896.html)

$route config - El Forum - 06-23-2011

[eluser]nolaeh[/eluser] doenst work. this work..

and the settings in $route is.
$route['welcome'] = "welcome"; (it is the default controller)

I think the problem is that index.php doesnt instanciete. how to get rid of the /index.php/ from the url path?

$route config - El Forum - 06-23-2011

problem to solve it was..

add this content in .htaccess file

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|pp|images|public|robots\.txt|css)
RewriteRule ^(.*)$ ./index.php?/$1 [L]