Applicable to:
- Plesk for Linux
- Plesk for Windows
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
.
Note: It is possible only in the Service Provider view.
This view is not available with Plesk Web Admin license.
Contact server's administrator or hosting provider support if this option is not visible with other licenses.
-
Go to Subscriptions > example.com.
-
Click Add New Domain button.
-
Specify the following:
-
In the Domain name box, type the domain name that you have registered with your service provider or a domain name registration company and from which you want to redirect visitors.
-
Under DNS server configuration, select the option Use our DNS settings.
-
Under Hosting type, select the Forwarding option.
-
In the Destination address box, type the URL 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 OK button to complete domain creation.
Video-instruction:
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 the URL address to which you want to redirect visitors.
-
Under Forwarding type, select Moved permanently (code 301) or Frame forwarding (difference between forwarding types is explained here).
-
-
Press the OK button to complete domain creation.
When it is required to redirect example.com hosted on another server to any other URL hosted on a Plesk server:
- Change the A record for example.com and www.example.com on name server side to point them to a Plesk server IP.
-
Create the same domain: Domains > Add New Domain > exmaple.com
-
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 the URL address to which you want to redirect visitors.
-
Under Forwarding type, select Moved permanently (code 301) or Frame forwarding (difference between forwarding types is explained here).
-
-
Press the OK button to complete domain creation.
-
Go to Domains > example.com > Apache & nginx Settings.
-
Add the following rows to the Additional nginx directives field to redirect visitors of example.com to example.net:
CONFIG_TEXT: location = / {
return 301 https://example.net/;
} -
Press the OK button to apply changes.
Comments
3 comments
Здравствуйте!
Как сделать редирект входа в панель управления?
Моя панель Admin Pelsk сейчас доступна по IP без SSL и по домену с SSL.
Мне необходимо чтобы была переадресация с ip на домен.
Либо предложите другой вариант защиты админки.
Спасибо!
Денис, добрый день, вот эта статья должна вам помочь.
Hey I want to redirect my domain mangastream.cc to mangapan.com but i can't see any option in my plesk panel where to redirect it. Also how can i change my root password? when i am going to change my root password the old password also works.
Please sign in to leave a comment.