Hello,
Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.
I can check in the screenshots that you are trying to redirect your homepage. You can’t set redirection for your homepage using Rank Math. To redirect your site’s www
version to non www
version, please edit your .htaccess file from WP Dashboard > Rank Math > General Settings > Edit .htaccess and add the rule given below:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Hope this helps. Let us kow if you need any further assistance.
Thanks. I am not good at php codes etc. The location you say already has a php. So, where should I insert the rule you gave? To the beginning, to the end?
Hello,
You can insert the code at the end of your .htaccess file. Please also note that if the RewriteEngine On
line is already declared, you don’t need to add that.
Since you mentioned that you are already seeing some of the codes, I would suggest getting in touch with your web host because they are in a better position to assist you with this kind of redirect.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Hi. Thanks for the info.
I contacted my hosting provider and they acknowledged that www. version is already redirected to my basic domain.
However, Rank Math redirections don’t show any redirections.
Rank Math>Redirections>active redirections=0
Is this OK?
Thanks
Hello,
The redirection from www to non-www version for your domain isn’t managed by Rank Math and that’s why you are not seeing it under the Redirections module. Since it is already redirecting to the correct version, please follow the steps that I have provided in your other ticket and the issue should be resolved.
Let us know how that goes. Looking forward to hearing from you.
Thanks.
Hello,
We are super happy that we could address your concern. If you have any other questions in the future, know that we are here to help you.
If you don’t mind us 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 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.