Last active
May 7, 2020 09:32
-
-
Save Barneybook/d7acc5ae582cfdf6c88dfe79d2728de7 to your computer and use it in GitHub Desktop.
IP 35.53.125.135 to abc.com (IP 跳轉 domain) Redirect IP address to Domain name Apache
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ^35\.53\.125\.135$ | |
RewriteRule ^(.*)$ http://abc.com/$1 [L,R=301] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.digitalocean.com/community/questions/redirect-ip-address-to-domain-name-apache