Created
May 31, 2018 20:23
-
-
Save ashsaraga/e5ba6aa38165a9bdb344dc3bbff18fae to your computer and use it in GitHub Desktop.
Include in the site's `-le-ssl.conf` file to avoid redirect loop on HTTPS request.
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 %{SERVER_NAME} =www.example.com | |
RewriteRule ^ https://example.com%{REQUEST_URI} [END,NE,R=permanent] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment