Hi, I am using the below configurations to redirect from HTTP to HTTPS login page. It redirects http://test.com to https://test.com/home/login.jsp. But when I request as https://test.com/, it is not redirecting to the login page. ========================================================== RewriteCond %{HTTP_HOST} test.com [NC] RewriteCond %{HTTPS} !on RewriteRule .* https://test.com/home/login.jsp [R=301,L] ========================================================== Could you please help me regarding. Thanks Srini
Your rules are working 100%, you don't want to redirect to the login page automaticlly on the https domain with your htaccess rules, as even when you log in, you'd always get pushed to the login page, Your software should automaticlly redirect your users to the login page if they try to access restricted content.