Skip to content

Instantly share code, notes, and snippets.

@nielsenrc
Created September 9, 2015 19:29
Show Gist options
  • Save nielsenrc/8a3db968d2ad35ae2c42 to your computer and use it in GitHub Desktop.
Save nielsenrc/8a3db968d2ad35ae2c42 to your computer and use it in GitHub Desktop.
Enforce SSL in Apache htaccess File
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.domain.com/$1 [R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment