以下の条件を作成しました。
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/(shop|delivery-checkout|delivery-order|delivery-offer|confirm-sms-code|show-delivery-product|auto-search-product|add-product|update-product|remove-product|destroy-cart|get-cart|cuisine|og-shop) [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/ [R=301,L]
RewriteCond $1 !^(index\.php|robots\.txt|website|shop_files|shop_list|client|favicon\.ico|style\.css|sitemap.xml)
RewriteRule ^(.*)$ ./index.php?/$1 [L]
AddCharset utf-8 .js
私が基本的にやろうとしているのは、(https) が URL に存在しないかどうかを確認することです。
参照されている URL 以外は、次のように書き換えます。https://www.
注: これらの URL を読み込んでいます: domain.com/shop、domain.com/delivery-checkout、domain.com/delivery-order をiframe 内に配置しているため、これらを除外して安全にするか、親サイトに依存しないようにする必要があります。
私は何を間違っていますか?