The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Domain Forwarding

Discussion in 'General Discussion' started by tris, Jul 31, 2004.

  1. tris

    tris Active Member

    Joined:
    Apr 11, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Well I have a problem.

    One of my customers has all of these domains

    actual.us
    airmilrewards.com
    0th.net
    24hrcasino.us
    auctioningdomain.com
    bettingcasino.us
    bulkdomainsearch.com
    burundi.us
    canada411.us
    canadaniagarafalls.com
    cashcasino.us
    casinofallsviewniagara.com
    casinoresortniagara.com
    centralafricanrepublic.us
    comoros.us
    comwhois.com
    directoryassistance.us
    domainiator.com
    doubletreeniagarafalls.com
    embassysuiteshotelniagara.com
    embassysuitesniagarahotel.com
    freecasinogame.us
    freenudepics.us
    globalcasino.us
    hyattcasinoresortniagara.com
    interactivecasino.us
    johnkeryy.com
    jukk.com
    kerryedward2004.com
    kerryedwards4.com
    keryyedwards.com
    macau.us
    malawi.us
    mozambique.us
    niagarafallsembassyhotel.com
    niagarafallshoneymoonsuites.com
    niagarafallshotel.org
    niagarafallskeg.com
    niagarahotels.us
    niagrafallsembassysuites.com
    opencasino.us
    orgwhois.com
    pokerchat.us
    pokerpalace.us
    pokerplace.us
    pokertalk.us
    presidentialnews.com
    procasino.us
    radissonhotelniagara.com
    reservationsniagara.com
    rwanda.us
    sheratonhotelniagarafalls.com
    solomonislands.us
    somalia.us
    springhillsuitesniagara.com
    springhillsuitesniagarafalls.com
    supportkerryedwards.com
    tajikistan.us
    texasholdemcasino.org
    texasholdemcasino.us
    trinidadandtobago.us
    trust.cc
    turkmenistan.us
    unixos.us
    unixsupport.us
    usa411.us
    viewed.org
    zambia.us
    xpinstall.com
    worldcasino.us
    windowssupport.org
    webwhois.us
    websitewhois.com
    websitenames.us
    vote-johnkerry.com


    he wants whenever someone types any of those domains in that they get forwarded to

    www.canadianniagarahotels.com


    On his registra he forwards the domains but they end up going to my home page www.hostsaints.com

    I have tried setting up parked domains but he doesnt want that as he wants to be able to see the www.canadianniagarahotels.com url instead of the ones they typed in due to google adsense.

    I then tried forwarding which just doesnt work with all domains it worked with one or two and that was it.

    Is there anyway to fix it so that he can get as many domains as he wants and they redirect to his site instead of mine?

    Thank You
    Tris Pulford
     
  2. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    If the customer will allow a change to his index file something like this may work
    <?
    / Read the URL if not main domain redirect to main domain
    $URL = $HTTP_HOST;
    if ($URL != 'www.canadianniagarahotels.com') {
    header('Location: http://www.canadianniagarahotels.com/');

    }
    ?>

    Also, you might use a .htaccess file something like
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^someotherdomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.someotherdomain.com$
    RewriteRule ^(.*)$ http://canadianniagarahotels.com [R=301,L]

    You would need a Rewrite for each I think, Iv'e not tested to see if you could use a wild card. Seems to me you could.
     
  3. tanfwc

    tanfwc Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    Did your client entered the value of the forwarding on both @ and www field?

    Tell him to read this

    http://namecheap.com/resources/help/demo/custom_namecheap_redirecturl.htm
     
  4. tris

    tris Active Member

    Joined:
    Apr 11, 2003
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Thank You, Is there anything else that it could be? beacause he is currently getting lots of domains.

    Tris
     
  5. tanfwc

    tanfwc Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    That is the best choice as you do not need to mess alot of stuff in your server and does not require pointing of DNS too.

    *offtopic* what for he want so many domain?
     
Loading...

Share This Page