使得強制「https://」
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
可套入 htaccess 導向...........
RewriteRule (.*) https://%≒{HTTP_HOST}%≒{REQUEST_URI}:≒443
RewriteCond %{HTTPS} off
RewriteRule ^basket\.php$ https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} /basket.php
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
沒有留言:
張貼留言
歡迎討論