Bulk Create Sub-domains And Manage Their Redirection

Hello,

I would like a script to bulk create sub-domains on any standard cPanel hosted account.
I do not want to enable wildcard (*.example.com)

Following is how I would like the script to work.

Step One: I enter a list of sub-domains I wish to create into a form hosted on the domain the sub-domains will be created on, and click a “Create Sub-Domains” button.
Example sub-domains I will create:
adventure
business
cars
download
plus 100,000 more!

Step Two: The script creates the sub-domains from Step 1 and advises results as follows:

http://adventure.example.com creation successful
http://www.adventure.example.com creation successful
http://business.example.com creation successful
http://www.business.example.com creation successful
http://cars.example.com creation successful
http://www.cars.example.com creation successful
http://download.example.com creation successful
http://www.download.example.com creation successful
plus 100,000 more!

Note: I would like “sub-domain.example.com” and matching “www.sub-domain.example.com” created.
So there will be over 200,000 sub-domains!

Step Three: Once the sub-domains are created, I would then like an Admin Interface (with pagination) to separately manage the redirection of each pair of sub-domains, which I think should be achieved via saving a form that updates the “.htaccess” file of each sub-domain pair.
For example, the .htaccess file for “adventure.example.com” might contain “Redirect 301 / http://www.google.com/search?q=adventure”, whereas I might like the .htaccess file for “business.example.com” to be “Redirect 301 / http://au.search.yahoo.com/search?p=business”

Note: The “sub-domain.example.com” and matching “www.sub-domain.example.com” will always have the same redirection.

However, you might have a better solution than above as I would also like Google Analytics to track visitor statistics. So it might be best if for example “adventure.example.com” and “www.adventure.example.com” resolve to “example.com/adventure/index.php”, which contains Analytics code and a METAREFRESH to manage the redirection?

Step Four: I would also like to be able to bulk delete sub-domain pairs.

Step Five: I do not want the server to ever overload. Please advise how you will prevent overloading occurring.
For example maybe limit sub-domain creation/deletion to 1 per second, or include some sever protection measures…

Please advise how you will complete the project and estimate how long it will take you.
Ask any questions now as I want this to be a smooth project.

Payment will be made 100% upfront into SL escrow and released when the script works, as detailed above on my server 100% bug free.

Thanks for your time 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *