CodeIgniter Forums
Doubt on friendly urls - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Doubt on friendly urls (/thread-29900.html)



Doubt on friendly urls - El Forum - 04-25-2010

[eluser]Unknown[/eluser]
Hello,

I started using CodeIgniter and recently got some and I'm dubious about whether I can use it on a new project.

As far as I know, the url of the CI works as follows:

www.myapp.com/controller/method

I wonder if there is the possibility of building an application so that it runs like this:

www.myapp.com/username

That is, with a dynamic name of a registered user.

If possible I would like to know how to use it and call controllers and methods in this way.

Thank you.


Doubt on friendly urls - El Forum - 04-26-2010

[eluser]Neeraj Kumar[/eluser]
You should read about routing in the help files...

neways, I won't suggest the format you want to use. I would rather suggest you create a controller by a name of 'users' or 'sessions' as it will make more sense and you'll be able to manage your app structure much more efficiently...