weee Posted January 16, 2011 Share Posted January 16, 2011 Hello, I just purchased my first SSL certificate and screwed up on it. I thought by not adding www. onto my domain name; it would cover both the www and non www paths (apparently not lol). So an easy way to fix this is if ssl is enabled force the user to stay on the non-www url. Is there a way to do this with mod_rewrite? Thanks! weee Quote Link to comment https://forums.phpfreaks.com/topic/224571-https-rewrite/ Share on other sites More sharing options...
requinix Posted January 16, 2011 Share Posted January 16, 2011 SSL happens before mod_rewrite kicks in. Way before. You cannot rewrite https://domain.com into https://www.domain.com to avoid browser security warnings. And yes, "big name" sites have the same problem. Try https://amazon.com... Quote Link to comment https://forums.phpfreaks.com/topic/224571-https-rewrite/#findComment-1160100 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.