I have an SSL-enabled website
Problem: I want to Http will redirect only to https for checkout pages. I am using the following code for redirection: on RewriteRule but all this redirects http to htaccess. What do I want: I would like to put some conditions on the hattage so that only checkout pages will be redirected or else there will be no redirection. You must capture requests for your checkout pages on port 80
at RewriteEngine RewriteCond% {HTTPS}! (. *) Https: //% {HTTP_HOST}% {REQUEST_URI}
RewriteEngine On RewriteCond% {SERVER_PORT} 80 rewrite% {REQUEST_URI} your-checkout-uri-pattern RewriteRule ^ (. *) $ Https: // your-sslized-site / $ 1 [R, L]
Comments
Post a Comment