I'm using the following mod rewrites to ensure not only canonical URLs but also that the site is displayed using HTTPS:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
// It think the problem must be here --^
RewriteCond %{HTTP_HOST} ^rto12\.ca$ [NC]
RewriteRule ^(.*)$ https://www.rto12.ca/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php?
RewriteRule ^index\.php?$ https://www.rto12.ca/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html?
RewriteRule ^index\.html?$ https://www.rto12.ca/ [R=301,L]
My problem comes when you try to go here: rto12.ca
... The browser takes you here: `https://www.rto12.ca/https://rto12.ca/'
It's the first condition/rule that's causing this. Any suggestions would be appreciated. Oh, and this site is live BTW if you care to check it out for yourself.
Thanks, Jason