Last active
June 2, 2022 11:01
-
-
Save endurtech/bcfc21cb4bf8a4cf73ee5fe5cbf51ffc to your computer and use it in GitHub Desktop.
Redirect Visitors to Another Website
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
| # Call RewriteEngine if you haven't already done so | |
| RewriteEngine On | |
| RewriteBase / | |
| # Replace 1.2.3.4 with your IP Address and othersite.com. | |
| RewriteCond %{REMOTE_ADDR} !^1.2.3.4 | |
| RewriteRule .* https://othersite.com [R=302,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment