Question
How to set up domain forwarding in Plesk?
How to redirect a domain to Document Root (or subfolder) of the another domain?
Answer
You can point one or more registered domain names to the same physical website, by using the domain name forwarding. This allows automatic redirection of visitors from the URL they specify in a browser to a site with a different URL. For example, visitors of the site example.com
can be redirected to example.org
.
To create a domain forwarder in Plesk
- Login to Plesk
- In Websites & Domains click Add Domain:
- Select required webspace’s (subscription’s) name in Webspace section where forwarder need to be created:
- Specify the forwarder domain name in Registered domain name section:
- Select Forwarding in Hosting type section:
- In the Forwarding Settings box, type the destination address to which you want to redirect visitors. Under Forwarding type, select Moved permanently (code 301) or Frame forwarding (difference between forwarding types is available here).
- Click Add Domain.
In the Service Provider view:
-
Go to Subscriptions > example.com.
-
Click Add Domain button.
-
Specify the following:
- Domain name
-
Under Hosting type, select the Forwarding option:
-
In the Forwarding Settings box, type the destination address to which you want to redirect visitors.
-
Under Forwarding type, select Moved permanently (code 301) or Frame forwarding (difference between forwarding types is available here).
-
Press the Add Domain button to complete domain creation.
Video-instruction:
To make an existing domain a domain forwarder
Warning: this way will remove all website data, so, it is recommended to create a domain backup first.
If it is required to keep the website content but create a redirect to another website, go to the article section “To make an existing domain a domain forwarder with keeping the website content (Linux only)”.
-
Go to Domains > example.com > Hosting Settings.
-
Click the Change link next to the Hosting type field:
-
Specify the following:
-
Under Hosting type, select the Forwarding option:
-
In the Destination address box, type…
-