Skip to content

Instantly share code, notes, and snippets.

@JAW-Dev
Created October 6, 2017 13:50
Show Gist options
  • Save JAW-Dev/694249cfbb07a8f3d45f78414537ff32 to your computer and use it in GitHub Desktop.
Save JAW-Dev/694249cfbb07a8f3d45f78414537ff32 to your computer and use it in GitHub Desktop.
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment