Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/224571-https-rewrite/
Share on other sites

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...

Link to comment
https://forums.phpfreaks.com/topic/224571-https-rewrite/#findComment-1160100
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.