Last active
August 10, 2016 03:58
-
-
Save lyquix-owner/b90f472e5d52c91585143da266220aca to your computer and use it in GitHub Desktop.
Force SSL to a whole domain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Force domain to SSL # | |
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