How to add Domain, Subdomain and Domain Alias in Plesk
How to add Domain
1. Go to Websites & Domains, click Add Domain and follow on-screen instructions.
Note: Depending on the Plesk edition, the information that you can specify on the Add Domain screen might differ.
2. Choose an unique name for your domain name.
3. Select the IP which will be associated with it and create a username and password for the FTP account.
4. Click OK. The new domain name is now shown in the Domain section.
How to add Subdomain
1. Go to Websites & Domains.
2. Click on Add subdomains.
3. Specify the following:
- In the Subdomain name box, type the portion of address that will be added to the domain name of your main site.
- In the Document root box, type the desired location of the directory where all files and subdirectories of this site will be kept. You can use the default directory of the main site, called httpdocs, or specify another directory.
4. Click OK. The new subdomain name is now shown in the list at the bottom of the screen.
Note: If you enter the asterisk (*) symbol as a subdomain name, Plesk will create a so-called wildcard subdomain. When site visitors enter any subdomain name that is not registered in Plesk, they will be redirected to this wildcard subdomain. You can create wildcard subdomains on any domain name level.
How to add Domain Alias
Domain aliases allow you to point several domain names to the same website.
1. Go to Websites & Domains and run the Add Domain Alias
2. Specify the domain alias as well as the primary domain:
3. Check one or more of the options below:
- Mail service
Plesk does not allow creating mailboxes under domain aliases. Instead, the mailboxes of the primary domain are used. If you select the Mail service option, the mailboxes created under the primary domain will also be available under the alias. To enable users to read mail sent to mailboxes under the alias, Plesk redirects it to the corresponding mailboxes under the primary domain.
- Web service
If this option is turned on, the website will open in the browser at the alias’s URL. If you clear the Web service check box, the alias will be used for mail only provided that Mail service is selected.
- Redirect with the HTTP 301 code
By default, Plesk uses web server internal redirection for aliases. In this case, the alias appears to be a separate website for visitors and for web search engines. This causes a problem because search engines index the content of the alias separately, so your primary domain loses search engine rankings.
To avoid this, you can use redirection with the HTTP 301 code (Moved permanently) by selecting Redirect with the HTTP 301 code. In this case, only the primary domain will rank in search engines.