Jump to content


Photo

Best way to redirect all URLs to https version


  • Please log in to reply
No replies to this topic

#1 tomhanna

tomhanna

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 29 May 2019 - 03:01 PM

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]

 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users