Created
December 21, 2020 11:19
-
-
Save w-jerome/f8a1acec559047cb85794f40c676e2e0 to your computer and use it in GitHub Desktop.
Apache - Https and www
This file contains hidden or 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
RewriteEngine On | |
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} !^www\.my-site\.com$ [NC] | |
RewriteRule ^(.*)$ https://www.my-site.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment