301 Issue

webmaze

Registered Member
Joined
Jul 3, 2014
Messages
59
Reaction score
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]
 
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?
 
Last edited:
Return you .htaccess file to the original.

Go in your cpanel and do the redirect there for your domain that you wish to redirect.
 
Return you .htaccess file to the original.

Go in your cpanel and do the redirect there for your domain that you wish to redirect.

This ^ cPanel should do a better job than manual htaccess modifications.
 
Thanks all. Fixed the issue from Cpanel. U rock guys.. :).. same for BHW..
 
Back
Top