Issue with subdomain redirection

bmedia

Registered
Aug 15, 2014
2
0
1
cPanel Access Level
Website Owner
For some reason one of my sites is being indexed in a search engine as ww1 instead of www in spite of the fact I never used ww1 on the site.

To try and fix this I setup a ww1. subdomain and set up redirection from ww1. to www.

However, at the subdomain maintenance screen, I get a message:

Subdomain Redirection

ww1.mysite.com is currently being redirected to: ww1.mysite.com.

Any ideas on how to fix this issue?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
Hello :)

Do you have any custom Mod_Rewrite rules in the .htaccess files within the account's home directory or below?

Thank you.
 

bmedia

Registered
Aug 15, 2014
2
0
1
cPanel Access Level
Website Owner
Hi Michael,

Thanks for the response. Here are the rules that are in there.

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

RewriteCond %{HTTP_HOST} ^ww1.mysite\.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]

Let me know if there are any issues with the above.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,237
463
You may want to temporarily remove those custom WordPress Mod_Rewrite rules to rule them out as the cause of the issue. It's possible you might have to modify your rules a bit to get those custom entries to work with standard redirect rules.

Thank you.