Steps to redirect IP address to domain name


Staff member
If you want to redirect your IP address to domain name then it is must to have administrative access or you can contact your hosting provider regarding this.

You can follow below steps:
  • Login to Plesk.
  • Click on Tools & Settings >> IP addresses >> Click on particular IP address like
  • Here specify the default domain name at Default Site option from dropdown.
  • Now add the below directive at this path Domains >> >> Apache & nginx settings >> Additional nginx directives and click Apply.
if ($host ~ ''){
rewrite ^/(.*)$$1 permanent;