Hi guys,
My rewrite rule is like below:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^sdalk\.com$
RewriteRule (.*) http://www.sdalk.com$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^/secure(.*) https://%{SERVER_NAME}/secure$1 [R,L]
when I go to
https://www.sdalk.com
it doesn't rewrite to
http://www.sdalk.com
which it suppose to. however, when I go to
http://www.sdalk.com/secure/msend.html
then it able to rewrite to
https://www.sdalk.com/secure/msend.html
ok all I need is when user browse to the folder "secure", it should be a secure connection aka https, which is working now and other than that all the pages shouldn't be https. if user try to enter, for example, https://www.sdalk.com/home.html, it must be rewrite to http://www.sdalk.com/home.html
Appreciate someone could assist me on this issue. Thanks in advance !
regards,
Mark Thien