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.

Redirect parked domain to page on main site?

Discussion in 'General Discussion' started by willke, May 8, 2006.

  1. willke

    willke Well-Known Member

    Joined:
    Mar 30, 2005
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
  2. flash7

    flash7 Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Sure, add this code here /home/abc/public_html/.htaccess

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} ^www.xyz.com$ [NC]
    RewriteRule ^(.*) http://www.abc.com/$1 [R=301,L]
    
    www.xyz.com is permanent redirect to www.abc.com
     
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    An easier way to do it is to use addon domains instead. Delete the parked domain and add the addon domain, then use the "setup redirection" link on the page, it works like a charm!
     
Loading...

Share This Page