Answers for "how to redirect IP to domain name in nginx and apache"

0

how to redirect IP to domain name in nginx and apache

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^123\.123\.123\.123$
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
Posted by: Guest on February-28-2022

Code answers related to "how to redirect IP to domain name in nginx and apache"

Browse Popular Code Answers by Language