Duplicate content issues after moving from Yoast

#95888
  • Resolved Anonymous
    Rank Math free

    Hi!
    I’ve moved away from Yoast and started using RankMath yesterday, which resulted in new errors on the SEO side of the website. I see now lots of warnings that I have duplicate content/meta descriptions/title tags. It all comes from not having a redirection from www to non-www url, as far as I see, even though this problem never popped up before and used to be solved using canonical tags (I guess automatically added by Yoast).
    Another strange thing is that when I inspect www urls in the google search console, it shows that there is a separate sitemap generated for the www version, which I think shouldn’t be the case, as by default my website is non-www.

    Could you help me resolve this issue? I think it negatively affects my SEO and can result in duplicate content penalty from google.
    thanks in advance!

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Please ensure you only have one version of your site and this should be the only version you verify on your Google Search Console.

    To redirect all requests to non-www, add the following lines at the beginning of your website’s .htaccess file:

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

    Replace yourdomain.com with your actual domain name.

    P.S.: Rank math also adds canonical URLs to your pages/posts automatically if they are set to index.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Duplicate content issues after moving from Yoast’ is closed to new replies.