Canonical URL Question…
-
Hello,
On browsers, our URLs appear to force the correct protocol (https://www.allvalleytransportation.com). When I test using https://httpstatus.io/, canonical inconsistencies and errors occur.
Would you advise manually entering the correct canonical on each post/page using the “advanced” section of YOAST? Do you feel this would solve the issue?
Here is what I added to our .htaccess file….
RewriteEngine on
# Redirect HTTP with www to HTTPS with www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]# Redirect HTTP without www to HTTPS with www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]# Redirect HTTPS without www to HTTPS with www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]Force trailing slash
RewriteCond %{REQUEST_URI} /+[^.]+$ RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]The website is on GoDaddy using a SECURI firewall.
Any suggestions would be greatly appreciated. Thanks so much.
The page I need help with: [log in to see the link]
- The topic ‘Canonical URL Question…’ is closed to new replies.