Skip to content

Alias ​​domain name

INFO

Alias, also known as Parked domain, allows us to run a website on many different domains. Alias ​​is a domain that is different from the main domain but has the same directory structure as the main domain.

Add alias domain

  1. On the website management page, click the Add button
  2. Enter the alias domain name, press TAB or Enter or , to confirm
  3. Click the Add Alias ​​Domain button

Configuration specific to WordPress source code

After Alias ​​is completed, you need to add the following to the wp-config.php file on the main website (main domain, the website aliased to). If you do not add this paragraph, when users access the Alias ​​domain, they will automatically redirect to the main domain

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']);