mummana Posted December 22, 2008 Share Posted December 22, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/138053-mod_rewrite-rule-for-http-to-https/ Share on other sites More sharing options...
rhodesa Posted December 22, 2008 Share Posted December 22, 2008 Your JSP should be redirecting the user to the login page, not apache. Quote Link to comment https://forums.phpfreaks.com/topic/138053-mod_rewrite-rule-for-http-to-https/#findComment-721621 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.