ホームページのみに https を作成できますか。
example.comまたは http://example.com またはwww.example.comまたは http://www.example.com
残りのすべてのページは http で始まる必要があります。
私はこのように試しましたが、うまくいきません
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} "^/$"
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteRule ^(.*) http://%{HTTP_HOST}%{REQUEST_URI}