• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

IP address domain aliases

A

adent

Guest
Is it possible to set up a domain alias using an IP address?

The domain alias tool will not allow it.

We want URLs that contain the dedicated IP address to resolve to the correct site; currently, when http://1.2.3.4 is entered, the default plesk site is served.

Any help would be greatly appreciated.
 
You will need to use Apache rewrite rules in order to do that (301 redirect would probably make the most sense here).

Google is your friend.
 
Thanks for the tip.

For anyone interested, here is the content of the .htaccess file doing the rewriting:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^1\.2\.3\.4

RewriteRule ^(.*)$ http://your.tld/$1 [R=301,L]
 
Back
Top