Hello guys,
I'm looking for some script that will let me add domains to my host from command line
I basically wanted to do something like this,
1. user "mike" register to my page (say www.website.com)
2. subdomain "mike.website.com" is created
3. Then user register his own domain (say www.mike.com), change dns to ns1.website.com and adds his domain at my page by some form
4. domain www.mike.com is parked on my server, and all requests from www.mike.com are redirected to mike.website.com
I hope you understand what I mean;
I need a way to create a subdomain from command line, then add domain from command line, and in the end, redirect traffic from domain to subdomain - also from command line
It's going to be similar service as ning.com
Do you have any solutions for something like that ?
The programming part I can do by myself, I just need some help from "hosting view"
edit: or if it's possible, to redirect from users domains like:
some enters www.mike.com, he is redirected to www.website.com/?page=mike.com
www.other_users_domain.com -> www.website.com/?page=other_users_domain.com
Thank you very much !
Last edited by dsk; 11-12-2008 at 03:14 PM..
|