Jump to content
MDDHosting Forums

Best way to redirect all URLs to https version

Recommended Posts

I'd like to redirect all links to the SSL version. I read a few things and the procedure seems to vary a bit from system to system. For a domain hosted on MDD is there anything different I need to do. The specific code I've seen to go into the .htaccess file is this, but I want to make sure there's nothing unusual that will break links somewhere in the site:


RewriteEngine on

# Set “protossl” to “s” if we were accessed via https://. This is used later
# if you enable “www.” stripping or enforcement, in order to ensure that
# you don’t bounce between http and https.
RewriteRule ^ — [E=protossl]
RewriteCond %{HTTPS} on
RewriteRule ^ — [E=protossl:s]


Link to comment
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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