Created
May 27, 2022 16:08
-
-
Save solepixel/b1e8d3b8cda6d32ee3b1abf136bb11a2 to your computer and use it in GitHub Desktop.
.htaccess Redirect All URLs from one domain to another
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
# Redirect Requests to Live Site. | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^stagingsite.net$ [NC] | |
RewriteRule ^(.*)$ https://livesite.com/$1 [R=301,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment