Skip to content

Alias Domain ​

An alias domain (also known as a parked domain) lets one website run on several domains. An alias shares the main website's source code directory, so any change to the main website's code also applies to its aliases.

Add alias domain ​

  1. Point the alias domain's DNS record to your server's IP address.
  2. Open Alias Domain in the left-hand menu of the main website.
  3. Click the Add Alias Domain button.
  4. Enter the domain in the Aliases field, then press Tab, Enter or , to confirm. You can enter several domains at once.
  5. Click Add Alias Domain in the dialog to save.

The aliases you add are listed in the table on the same page.

Manage alias domains ​

Each alias domain is managed like a child website: click the alias name in the table to open its own management page. From there you can:

Items such as Deployments, Commands and Install Source Code are not available on an alias; use the main website instead.

To delete an alias, click the delete icon (Delete Site) on its row in the table and confirm. Deleting an alias only removes that domain's configuration; it does not delete the main website's source code.

WordPress-specific configuration ​

WordPress redirects every request to the domain saved in its own settings. To make an alias show its own domain, add the following to the main website's wp-config.php file, above the line /* That's all, stop editing! */. You can edit the file with the File Manager.

php
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
php
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);

Use the https version when the main website and all aliases have SSL.