Welcome Guest, Not a member yet? Register   Sign In
URL without controller
#1

[eluser]donaldpcook[/eluser]
Hi all,

Is there a way to not have the controller in the url? I'm creating a simple site, and just want all of the urls to be: http://www.mysite.com/viewname.php instead of www.mysite.com/controller/viewname.php.

Easy way to do this?
#2

[eluser]Krzemo[/eluser]
To be precise: http://www.mysite.com/controller/control...nction.php
And yes - you can have http://www.mysite.com/controller_function.php urls only. They dont even have to be real functions names. All you have to remember is to make them globally unique.

Just read this in user guide
http://ellislab.com/codeigniter/user-gui...uting.html




Theme © iAndrew 2016 - Forum software by © MyBB