次の mod の書き換えを使用して、正規の URL だけでなく、サイトが 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]
ここに行こうとすると問題が発生します: rto12.ca
... ブラウザは次の場所に移動します: ` https://www.rto12.ca/https://rto12.ca/ '
これは、これを引き起こしている最初の条件/ルールです。任意の提案をいただければ幸いです。