1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Moderator in Training Jr. VIP Premium Member

    Joined:
    Aug 31, 2013
    Messages:
    3,853
    Likes Received:
    6,902
    Gender:
    Male
    Occupation:
    Liquidator
    Location:
    Riverside County, 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 Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,373
    Likes Received:
    5,439
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    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..