Skip to content

Instantly share code, notes, and snippets.

@mskian
Created March 10, 2016 03:44
Show Gist options
  • Save mskian/5aade71c1d75bef7fe96 to your computer and use it in GitHub Desktop.
Save mskian/5aade71c1d75bef7fe96 to your computer and use it in GitHub Desktop.
HTACCESS CODE FOR ACTIVATE THE HTTPS VERSION FOR SINGLE DOMAIN
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment