Help needed regarding Dynamic Subdomain creation for my site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
swishdina
Forum Newbie
Posts: 1
Joined: Fri Nov 11, 2005 5:31 am

Help needed regarding Dynamic Subdomain creation for my site

Post by swishdina »

Hi,
I am dinakaran, I am very happy to post my doubt in this webmasterworld.com since this site cleared of many doubts.So, I hope i can get the correct solution for my doubt posted here.
My doubt:
I want to create the subdomain for my site which is in linux server.for eg.,

subdomain.sitename.com (dynamically i have to create using PHP)

the url must show like this and redirect to the folder nameds subdomain.please anyone help me to create the subdomain like this. If you provide the step by step procedure it will be more helpful for me.

I am waiting for your reply,

Thanks
Dinakaran
AbsoluteBreeze
Forum Newbie
Posts: 3
Joined: Fri Nov 11, 2005 6:55 am

Post by AbsoluteBreeze »

You will need to create a wildcard DNS record (your host might/need to do this for you)

And then use a redirector via .htaccess
Post Reply