I have a web application that I made in codeigniter. This system has multiple users. I wanted to give each user their unique URL so for example.
www.mysite.com/user1
www.mysite.com/user2
If the user visits the url below;
www.mysite.com/user2/admim/addArticle
admin/addArticle function should implement and ignore the user2 in the url. I looked into routing but I was not successful at solving this problem.
Is this possible?
What I tried so far:
I added following in routes.php file $route['(:any)'] = "home/index";
above did not work so I tried following guide at http://ellislab.com/forums/viewthread/217216/ which did not work either: