EllisLab text mark
Advanced Search
     
interesting URL route configuration, help needed
Posted: 05 September 2007 11:09 AM   [ Ignore ]
Joined: 2007-09-05
3 posts

My first post here, many hopes that You will be helpful to me.

OK, I am new to CI, but managed a lot so far.

But this one is a bugger,
here is the deal, how to setup, configure etc routing correctly to have this the same:

subdomain.domain.com/parameter(username)

exp: my.socialnetwork.com/mmirkovic

to display:

http://www.domain.com/controller/class/parameter

exp: http://www.socialnetwork.com/review/profile/mmirkovic

I am using my server so if some more has to be done on it except just tunning application it is doable smile

many thanks in advance.

 
Posted: 05 September 2007 11:46 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-07-30
2144 posts

Setup a route for all of your other controllers, then setup a route to catch everything else and send it to review/profile.

Be sure you don’t let people register a username that == one of your other controllers as well. :D

 Signature 

Follow me on twitter here.
MichaelWales.com | MichaelWales.info

 
Posted: 05 September 2007 04:52 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-09-05
3 posts

tnx dude,

would You be so kind to find a minute or two to give me example.
I tried all ready something like this, but with no success so I would like to compare it with Your thoughts.

tnx again ... a lot