지불 페이지 http를 https로 리디렉션하는 다시 쓰기 규칙을 적용하려고합니다. 난 단지 지불 페이지와는 HTTPS에 있지 http로 가야 홈 탭에서 사용자가 클릭하면 HTTPS를 원하는단일 페이지의 HTTP 대 HTTPS
예 :
https://example.com/payment.php
지불 페이지 http를 https로 리디렉션하는 다시 쓰기 규칙을 적용하려고합니다. 난 단지 지불 페이지와는 HTTPS에 있지 http로 가야 홈 탭에서 사용자가 클릭하면 HTTPS를 원하는단일 페이지의 HTTP 대 HTTPS
예 :
https://example.com/payment.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} ^/payment\.php$ [NC]
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^/payment\.php$ [NC]
RewriteRule^http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
'RewriteCond'의 문서를보세요 – Wrikken