[need help fast] Redirecting.

Discussion in 'Site & Server Administration' started by Captain Tycoon, Apr 5, 2009.

  1. #1
    Ok heres the case:

    I have 31 domains; 30 of which are parked on 1 domain. But I don't really want to park these domains anymore as they're messing up my SEO (duplicate content).

    What I want to do is to have 30 of those domains to immediately redirect the visitor to my main domain.

    How would I go by doing this? Do I need separate hosting accounts or can I do this with one? If i can do this with .htaccess, what the code I need put in the file?

    Would appreciate all the help I can get as soon as possible.
     
    Captain Tycoon, Apr 5, 2009 IP
  2. norbert

    norbert Guest

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I don't think you need a second account. You should be able to redirect everything within your existing accounts:

    (not tested)

    .htaccess
    
    #redirect xyz.com to abc.com
    RewriteCond %{HTTP_HOST} ^www\.xyz\.com$ [NC]
    RewriteRule ^(.*)$ http://www.abc.com/$1 [R=301,L]
    
    Code (markup):
    or

    Apache config:
    
    <VirtualHost YOURIP:80>
            ServerName www.xyz.com
            ServerAlias xyz.com
    
            Redirect 301 / http://www.abc.com/index.html
    </VirtualHost>
    
    Code (markup):
     
    norbert, Apr 7, 2009 IP