Twango Posted June 12, 2011 Share Posted June 12, 2011 Hey, I have a big question.I have a URL shortenening service.Got a really short URL (www.xxd.in)And I thought it'd be a good idea to sell/give out domains (subdomains)I really have absoloutely no idea what kind of script I'd need.Basically I'd want an HTML form where you put in a Subdomain, and If it's not taken, it sends it to a PHP page (I could do that part my self).Basically the problem I'd have is creating the domain extention, and having a page where they can set the Nameservers or A-Records where it points too...Help? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 13, 2011 Share Posted June 13, 2011 Are you sure your server has support for that type of thing? If you're using a shared host you may not be allowed to create subdomains programmatically. Link to comment Share on other sites More sharing options...
MrFish Posted June 13, 2011 Share Posted June 13, 2011 Would it be possible to use mod_rewrite on this?http://www.easymodrewrite.com/example-subdomains Link to comment Share on other sites More sharing options...
justsomeguy Posted June 13, 2011 Share Posted June 13, 2011 You can use mod_rewrite to control where requests for that subdomain go when they are received by the server, but you still need to set up things like the nameservers and Apache to point the subdomain to the right place. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.