Click here to Skip to main content
15,065,324 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi i'm trying to create a sub domain for every users who want to create a weblog in my site
how can i do this!? a.mysite.com b.mysite.com .(it is not URL rewriting)

i even want to let the users to have their own sub domain by purchasing a domain
c.org/net/com or ....
Posted
Comments
   
What have you tried?

1 solution

You would have to manipulate your sites DNS records and publish the changes. Do you have access to do this? If you are on a shared hosting provider or let someone else host your domain's DNS records for you then you'll will have a very hard time coming up with a way to interact with the records programmatically.

Basically this is hard and you will have to integrate with possibly several other systems. Perhaps you should consider allowing users to create mysite.com/a for now... Done is 100X better than perfect ;)
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900