Created
November 23, 2017 09:32
-
-
Save PeteLawrence/15a18b1505e64ca096f4e65ebe063eb6 to your computer and use it in GitHub Desktop.
Redirect a LetsEncrypt secured 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
# | |
# Redirects an entire domain to a new domain | |
# Includes an exception that allows LetsEncrypt to check for its validation file | |
# | |
RewriteEngine On | |
# Exception for the LetsEncrypt validation file | |
RewriteRule ^(.well-known) - [L] | |
# Redirect all pages to the same URL on the goodlifelakedistrictcottages.co.uk site | |
RewriteRule ^ https://www.goodlifelakedistrictcottages.co.uk%{REQUEST_URI} [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment