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

Discussion in 'Black Hat SEO' started by Miss Seoretician, Sep 21, 2012.

  1. Miss Seoretician

    Miss Seoretician Jr. VIP Jr. VIP

    Joined:
    Aug 27, 2009
    Messages:
    528
    Likes Received:
    247
    Gender:
    Female
    Occupation:
    SEO
    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
     
  2. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    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.
     
  3. a63i89a

    a63i89a BANNED BANNED

    Joined:
    Apr 30, 2012
    Messages:
    106
    Likes Received:
    9
    cPanel Menu : Addon Domains & Redirects
     
  4. Miss Seoretician

    Miss Seoretician Jr. VIP Jr. VIP

    Joined:
    Aug 27, 2009
    Messages:
    528
    Likes Received:
    247
    Gender:
    Female
    Occupation:
    SEO
    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
     
  5. jaerehan

    jaerehan Elite Member

    Joined:
    Sep 25, 2009
    Messages:
    1,500
    Likes Received:
    1,504
    Occupation:
    Time...Time is on my side..
    Location:
    EU
    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


     
  6. Miss Seoretician

    Miss Seoretician Jr. VIP Jr. VIP

    Joined:
    Aug 27, 2009
    Messages:
    528
    Likes Received:
    247
    Gender:
    Female
    Occupation:
    SEO
    Anyone else that has something to contribute ? All help is very appreciated