Skip to content

Instantly share code, notes, and snippets.

@fernandiez
Created April 23, 2017 23:31
Show Gist options
  • Save fernandiez/312e1a8ad9832a07c45a5a82d5635707 to your computer and use it in GitHub Desktop.
Save fernandiez/312e1a8ad9832a07c45a5a82d5635707 to your computer and use it in GitHub Desktop.
Domain 301 redirection from HTTP to HTTPS
# Domain 301 redirection from HTTP to HTTPS
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment