Skip to content

Instantly share code, notes, and snippets.

@earvinpiamonte
Created September 1, 2019 04:55
Show Gist options
  • Save earvinpiamonte/a1e476406ab703e3f9366031c40a2cc8 to your computer and use it in GitHub Desktop.
Save earvinpiamonte/a1e476406ab703e3f9366031c40a2cc8 to your computer and use it in GitHub Desktop.
Manually force to HTTPS for Apache
# Note: Replace "example.com" with your own domain.
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment