Created
September 24, 2018 10:44
-
-
Save KINKCreative/7d2d4310507b9eab7251dfeecbca44f3 to your computer and use it in GitHub Desktop.
Apache Redirect to www and https
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
RewriteEngine On | |
RewriteCond %{HTTP:X-Forwarded-Proto} =http | |
RewriteRule .* https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent] | |
RewriteCond %{HTTP_HOST} ^domain\.org$ | |
RewriteRule (.*)$ https://www.domain.org$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment