CodeIgniter Forums

Full Version: $route config
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]nolaeh[/eluser]
www.mypage.com/welcome/ doenst work.

www.mypage.com/index.php/welcome/ 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?

El Forum

[eluser]nolaeh[/eluser]
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]

</IfModule>