301 Issue

Discussion in 'Black Hat SEO' started by webmaze, Sep 29, 2014.

  1. webmaze

    webmaze Registered Member

    Joined:
    Jul 3, 2014
    Messages:
    59
    Likes Received:
    10
    I am using a 301 redirect for a domain. Say, domain1.com redirecting to domain2.com. But, the issue I am facing is all the addon domains are also getting redirect to the domain2.com.

    Please provide any solution if you have. I tried the following codes but both not working.

    First:
    Redirect 301 / http://www.domain2.com

    Second:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.domain1.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain1.com/$1 [R=301,L]
     
  2. Zwielicht

    Zwielicht Super Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    11,316
    Likes Received:
    16,837
    Gender:
    Male
    Occupation:
    Death
    Location:
    Southern California
    Home Page:
    It looks like you only have 1 issue. Where are the other 300? :kidding:

    Okay, so you have multiple domains sharing the same cpanel (addon domains). Is it possible that you placed the 301 redirect code in a file that is shared by your other domains?
     
    • Thanks Thanks x 1
    Last edited: Sep 29, 2014
  3. Seljo

    Seljo Regular Member

    Joined:
    Jul 3, 2013
    Messages:
    384
    Likes Received:
    137
    Return you .htaccess file to the original.

    Go in your cpanel and do the redirect there for your domain that you wish to redirect.
     
    • Thanks Thanks x 1
  4. Conor

    Conor Elite Member

    Joined:
    Nov 7, 2012
    Messages:
    3,617
    Likes Received:
    6,077
    Gender:
    Male
    Location:
    South Africa
    This ^ cPanel should do a better job than manual htaccess modifications.
     
    • Thanks Thanks x 1
  5. webmaze

    webmaze Registered Member

    Joined:
    Jul 3, 2014
    Messages:
    59
    Likes Received:
    10
    Thanks all. Fixed the issue from Cpanel. U rock guys.. :).. same for BHW..