The www and non-www versions of your URL are not redirected to the same site

#72508
  • Resolved Shivdas Kanade
    Rank Math free

    Hello Team,

    We have redirected already but still we are getting below error,

    The www and non-www versions of your URL are not redirected to the same site

    I have mentioned site details

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Alberto
    Rank Math business

    Hello,

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

    You had to add this code in your .htaccess file (replacing yourdomain.com with your domain):

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

    You almost had it, your only issue is just forgetting to remove the previous .com so it was yourdomain.com.com. I removed it and now everything is fine, could you check it?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello Alberto,

    I have checked this still i am getting this issue again

    The www and non-www versions of your URL are not redirected to the same site.

    Thanks it solved now.

    Alberto
    Rank Math business

    Hello Shivdas,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.