Welcome Guest, Not a member yet? Register   Sign In
Routing Question (:any)
#1

[eluser]CI-Newb[/eluser]
Hello CI Forum & Coders! I would like the following url to display a users profile:
Code:
http://www.website.com/username-here
.
The following is what I am trying to use to acomplish this.
Code:
$route['(:any)'] = "profile/view/$1";
The problem is this prevents me from accessing any of my other controllers /login/, /logout/ etc. Is there a way to achieve this goal or will I have to add every other controller to the route file above this. ex : [login] -> /login/, [logout] -> logout, etc. Thank you very much for your time and any help that can be provided!


Messages In This Thread
Routing Question (:any) - by El Forum - 08-13-2012, 09:04 PM
Routing Question (:any) - by El Forum - 08-13-2012, 10:12 PM
Routing Question (:any) - by El Forum - 08-16-2012, 06:39 AM
Routing Question (:any) - by El Forum - 08-16-2012, 09:46 AM
Routing Question (:any) - by El Forum - 08-16-2012, 01:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB