-
I have been running the “SEO Analysis” tool of RankMath in WP and I get the following error:
The www and non-www versions of your URL are not redirected to the same site.I don’t understand what it means
my url is https://www.100botteghe.it/
and I thin it’s ok
-
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
I can suggest that you create the redirection via the the .htaccess file. You can achieve this by adding the following directive:
RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
I hope this information is helpful, and please do not hesitate to contact us if you require any additional support.
Thank you.
the directive is good for a multisite WP?
Hello,
Yes, this htaccess configuration should work for your current WordPress installation.
Do let us know how it goes. Looking forward to helping you.
I added it
RewriteEngine On RewriteCond %{HTTP_HOST} ^100botteghe.it [NC] RewriteRule ^(.*)$ http://www.100botteghe.it/$1 [L,R=301]
But there is the same warning in SEO ANALYS of RankMath:
The www and non-www versions of your URL are not redirected to the same site.Have I to wait?
Is the code, i put correct?
RewriteEngine On RewriteCond %{HTTP_HOST} ^100botteghe.it [NC] RewriteRule ^(.*)$ http://www.100botteghe.it/$1 [L,R=301]
perhaps have I to put this code, without www and ith htpps?
RewriteEngine On RewriteCond %{HTTP_HOST} ^100botteghe.it [NC] RewriteRule ^(.*)$ https://100botteghe.it/$1 [L,R=301]
Hello,
Can you please clear your website cache and try again after using
https
instead ofhttp
?Looking forward to helping you with this one.
I clear the cache but the error persists in Seo Analisys of Rank Math.
I test other seo tester online and it seems it’s all good.
Can you test this web site please?
http://www.100botteghe.itHello,
I’ve checked your site, and it is being redirected with a
302
status. You can also use this tool to check. Here’s a screenshot for your reference:
https://i.rankmath.com/Y11m4MIn this case, I would recommend checking this kind of redirect with your web host. The redirect status of your site should be 301 OK status.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
I insert the code
RewriteEngine On RewriteCond %{HTTP_HOST} ^100botteghe.it [NC] RewriteRule ^(.*)$ https://100botteghe.it/$1 [L,R=301]https://pasticceriadamolin.100botteghe.it/
this is a subdomain and it is with 200.Hello,
I checked the subdomain and it seems it has some certification issues. Please refer to my screenshot here: https://i.rankmath.com/Z3LmEh
You may need to contact your host and fix it for you. Looking forward to helping you with this one.
I contact the host and there are no issues.
They made DIG.http://www.100botteghe.it
;; ANSWER SECTION:http://www.100botteghe.it. 3600 IN CNAME 100botteghe.it.
100botteghe.it. 3600 IN A 93.95.216.222Record www of the subdomain (www.pasticceriadamolin.100botteghe.it) is A record that points always to IP of the server:
http://www.pasticceriadamolin.100botteghe.it
;; ANSWER SECTION:http://www.pastticeriadamolin.100botteghe.it. 3600 IN A 93.95.216.222
Hello,
I tested and the subdomain (HTTPS + www) still returns the same “Hostname/IP does not match certificate’s altnames” error.
However, could you confirm what was the response of your host for the 302 redirections in the main domain? The HTTPS and HTTP variation of the website (without www) returns the 302 with 200 status.
Here’s a screenshot: https://i.rankmath.com/Ccnqaj
Looking forward to hearing back from you.
Thank you.
for this web site https://pasticceriadamolin.100botteghe.it/
your collegue find an error that is visible in this screen shot
https://i.rankmath.com/Z3LmEhI think now it’s ok, correct?
Hello,
Yes, for the subdomain (https://pasticceriadamolin.100botteghe.it/), the error is now removed and the redirections are also correct.
Here’s a screenshot: https://i.rankmath.com/5QgROY
For the main domain, the 302 redirection issue persists. You can have a look at this screenshot for a quick reference: https://i.rankmath.com/9cEWI7
Thank you.
The ticket ‘www and non www’ is closed to new replies.