WordPress.org

Ready to get started?Download WordPress

Forums

www redirection not working after 3.1.3 upgrade (5 posts)

  1. Primitive
    Member
    Posted 3 years ago #

    Hi everyone,

    All my WordPress sites have been redirecting http://domain.com to http://www.domain.com with no problems for years.

    Since upgrading from WP 3.1.2 to 3.1.3 that redirection seems to have stopped. The site shows up both with the www and without it - no redirection which can be a problem for SEO with duplicate content.

    Any ideas on what is going on here?
    I anyone else seeing this problem?

  2. Primitive
    Member
    Posted 3 years ago #

    OK - this looks to be a conflict with Yoast's WordPress SEO plugin.

    I'll do a little more investigating...

  3. evster
    Member
    Posted 3 years ago #

    Primitivenet - Any update on a solution for this? I think a website of mine is having the same issue.

    Thanks!

  4. evster
    Member
    Posted 3 years ago #

    Update - I applied the latest update to the Yoast SEO plugin and that seems to have fixed the issue.

  5. SEO Peter
    Member
    Posted 2 years ago #

    1. see http://domain.com/wp-admin/options.php
    2. Search for domain.com and all inputs change to http://www.domain.com
    3. Press Save
    4. You MUST do 1. - 3. before writing following code in .htaccess (if you forgot just delete that line)
    5. Into .htaccess file insert lines:
      RewriteCond %{HTTP_HOST} ^domain.com [NC]
      RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.