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 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. 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
Archived
This topic is now archived and is closed to further replies.