Welcome Guest, Not a member yet? Register   Sign In
Subdomain as a segment/controller?
#1

[eluser]talkingnews[/eluser]
I need to use a subdomain as a class. ie, instead of:

www.example.com/class/function/ID
(www.localguide.com/town-name/history/1)

I need

class.example.com/function/ID
(town-name.localguide.com/history/1)

I've wildcarded the subdomain in nginx, now I've googled and read
http://ellislab.com/codeigniter/user-gui...s/uri.html
http://ellislab.com/codeigniter/user-gui.../urls.html
http://ellislab.com/codeigniter/user-gui...elper.html
but nothing. I need it to be so that if another town is added to the db, it'll resolve that new town and its details.

I've had it going fine in plain old php for a couple of years now; now I want to upgrade to codeigniter without ruining my old structure if possible (plus there's a good reason for it).

Thanks!





Theme © iAndrew 2016 - Forum software by © MyBB