Welcome Guest, Not a member yet? Register   Sign In
interesting URL route configuration, help needed
#1

[eluser]mmirkovic[/eluser]
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:

www.domain.com/controller/class/parameter

exp: 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.
#2

[eluser]Michael Wales[/eluser]
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. Big Grin
#3

[eluser]mmirkovic[/eluser]
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




Theme © iAndrew 2016 - Forum software by © MyBB