The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Issue with subdomain redirection

Discussion in 'General Discussion' started by bmedia, Aug 15, 2014.

  1. bmedia

    bmedia Registered

    Joined:
    Aug 15, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,685
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. bmedia

    bmedia Registered

    Joined:
    Aug 15, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,685
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page