Skip to content

Instantly share code, notes, and snippets.

@Barneybook
Last active May 7, 2020 09:32
Show Gist options
  • Save Barneybook/d7acc5ae582cfdf6c88dfe79d2728de7 to your computer and use it in GitHub Desktop.
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
<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