How do I redirect multiple domains to one main domain without adding them one by one in cp

DexterShop

Power Member
Jr. VIP
Joined
Aug 27, 2009
Messages
573
Reaction score
265
Ok here is the thing , I got a nice chunk of domains that I can change nameservers on in bulk , but the registrar doesnt offer a forwarding option.

Whats the quickest way to setup something on my server that redirects all these domains to a certain main url ? I dont want to add them all to cpanel one by one ( over 100 domains )

Running apache server and I have full root access
 
You can get/write a php script that adds the domains to as addon domains into cpanel, and an other one that does the forwarding in bulk as well.

I was looking at a codecanyon script to do the same a few months ago to modify it to my needs.
 
I never thought I could do this using php , I already found the script to add the addon domains in bulk. Haven't found one for the forwarding yet , if you know one , plz point me in the right direction

thx for the help
You can get/write a php script that adds the domains to as addon domains into cpanel, and an other one that does the forwarding in bulk as well.

I was looking at a codecanyon script to do the same a few months ago to modify it to my needs.
 
You are welcome. I didnt got it working back then though.

I guess for forwarding there is some info for you, i know its for email, but the cpanel xml api might be useful

http://forums.cpanel.net/f42/email-forwarder-script-229081.html


I never thought I could do this using php , I already found the script to add the addon domains in bulk. Haven't found one for the forwarding yet , if you know one , plz point me in the right direction

thx for the help
 
Anyone else that has something to contribute ? All help is very appreciated
 
Back
Top