[eluser]FirstByte[/eluser]
Hi
i'm developing a small social networking application, but right now I'm stuck with some URI Routing.
right now i have different controllers for displaying static pages, contact us, faq, profile, account they are working great they are looking something like:
exemple.com/pages
exemple.com/contact_us
exemple.com/myaccount
when i want to display the user profile the URI is something like
exemple.com/profile/username1
exemple.com/profile/username2
the thing that I'm trying to achieve is that when the uri will be something like
exemple.com/username1 will need to route to exemple.com/profile/username1
exemple.com/username2 will need to route to exemple.com/profile/username2
but still the other controllers will need to work as they are now.
I heaved try to do this using regex using the method "Positive and Negative Look behind" but with no success.
Does anyone can suggest a good way to accomplish my uri routing
regards