Skip to content

Instantly share code, notes, and snippets.

@geirarne
Created January 4, 2012 16:30
Show Gist options
  • Save geirarne/1560821 to your computer and use it in GitHub Desktop.
Save geirarne/1560821 to your computer and use it in GitHub Desktop.
htaccess redirect to SSL version of site
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment