Welcome Guest, Not a member yet? Register   Sign In
how to create subdomain dinamically in codeigniter
#1

[eluser]Sawariya[/eluser]
hai friends

i want to create subdomains for all registered users ... how it possible.. anybody have idea..
please help me


------------------
#2

[eluser]Ahmed Nuaman[/eluser]
Yes it is, it does require some server configuration though:

- You need to set up your DNS to allow *.yourdomain.TLD
- You need to then think about how you're going to route people, for example I have:
URL -> Is it a subdomain?
Yes: Ok, figure out the subdomain, is there a user?
Yes: Ok, route to that user.

And that's pretty much it.




Theme © iAndrew 2016 - Forum software by © MyBB