Last active
March 10, 2019 09:00
-
-
Save Dan0sz/3f601cd8185112983e7b5c0cbccc9dc2 to your computer and use it in GitHub Desktop.
301 Redirect to new domain including Request URI
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 | |
# Exception for Google Verification | |
RewriteCond %{REQUEST_URI} !^/google-verification-file.html | |
# Exception Let's Encrypt Challenge | |
RewriteCond %{REQUEST_URI} !^/.well-known/ | |
# 301 Redirect to New Domain incl. Request URI | |
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L] |
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 | |
# 301 Redirect to New Domain incl. Request URI | |
RewriteRule ^(.*)$ https://newdomain.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment