• Hi

    Whenever I goto https://www.my-wp-domain.com, it automatically redirects to the non-www version https://my-wp-domain.com

    Any idea why this is happening ?

    This is what I have in my .htaccess

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

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Check what you have in the General settings section of your WordPress dashboard.

    I think if you installed WordPress by going to the non www one then it will always go back to that one even if you type www.

    Try changing it in the settings to www. and see if that works.

    Thread Starter anjanesh

    (@anjanesh)

    Thanks. I changed both
    WordPress address (URL) and Blog address (URL)
    But now, the non-www gets redirected to the www link.

    So its not possible to use both ?

    I think that wordpress always defaults to one – the one that you installed wordpress on. That said I think that links will always work whether they are www or not.

    So its not possible to use both ?

    You don’t want to use both!
    Search engines see them as two different sites with the same content and might punish you for that. Stick to one!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘www automatically redirecting to non-www’ is closed to new replies.