Created
April 21, 2021 11:56
-
-
Save seanryy/3c67d3e055e053a6bbcf8880c45e9646 to your computer and use it in GitHub Desktop.
Simple Domain Migration htaccess Rewrite
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
# RedirectURLs permanently to new domain with SSL | |
RewriteCond %{HTTP_HOST} !^www\.yournewdomain\.com | |
RewriteRule (.*) https://www.yournewdomain.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment