• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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