I've ran a website I've made through SiteCheckerPro. I'm seeing a 'critical error', but I'm not sure how to fix it. The error is 'URL Vulnerability: Configured wrong'
The report says:
"URL Vulnerability
Search engines see your https://website.co.uk andhttps://website.co.uk/index.html (or https://website.co.uk/index.php) as different pages.
If you don't explicitly tell Google which URL is canonical, Google will make the choice for you, or might consider them both of equal weight, which might lead to unwanted behavior."
I understand what it's telling me, I just can't figure out how to fix it.
I've added a canonical tag
<link rel="canonical" href="https://website.co.uk/" />
and I've added a few htaccess rules to redirect www to non-www and http to https
#www > non-wwwRewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]RewriteRule ^(.*)$ http://%1/$1 [R=301,L]#http > httpsRewriteCond %{HTTPS} offRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
I can't figure out what else I can do to fix this error?