I am trying to do ssl redirection for few pages only e.g. viewcart, checkout and when I try to apply this rule it gives me server 500 error.
Below is the lines I am using in my htaccess
RewriteCond %{HTTPS} on [s=2]
RewriteRule ^viewcart$ https://%{HTTP_HOST}/viewcart [R,L]
RewriteRule ^checkout$ https://%{HTTP_HOST}/checkout [R,L]
Thanks for help in advance. hope to get it resolved soon.
Thanks
mr p
sis not a valid flag for the RewriteCond directiveYou can achieve the same with below