Redirects in Plesk - Windows Shared
Use the instructions below to redirect a domain in Plesk for Windows Shared and Dedicated hosting.
Add a New Domain Forwarder
To add a new domain forwarder:
- If you are subscribed to several hosting packages and have access to several web spaces associated with your account, select the required webspace in the Subscription menu at the top of the screen.
- Click the Websites & Domains tab.
- Click Add New Domain.
- 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.
- Under Hosting type, select the Forwarding option.
- Make sure to check tick the boxes for Activate the DNS Service and Activate the Mail Service boxes.
- In the Destination address box, type the Internet address to which you want to redirect visitors.
- Under Forwarding type, select the preferred type of forwarding. With standard forwarding, a user is redirected to the site, and the actual site's address is shown in the user's browser, so the user always knows that he or she is redirected to another address. With frame forwarding, a user is redirected to the site without knowing that the site actually resides at another location; therefore, frame forwarding should be preferred.
- Click OK.
Create a Domain Forwarder with an Existing Domain
To reconfigure an existing domain and make it a domain forwarder:
- Go to the Websites & Domains tab.
- Select Hosting Settings next to the preferred domain.
- 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 Internet address to which you want to redirect visitors.
- Under Forwarding type, select the preferred type of forwarding. With standard forwarding, a user is redirected to the site, and the actual site's address is shown in the user's browser, so the user always knows that he or she is redirected to another address. With frame forwarding, a user is redirected to the site without knowing that the site actually resides at another location; therefore, frame forwarding should be preferred.
- Click OK.
How to Add a New Subdomain Forwarder
To add a new subdomain forwarder:
- If you are subscribed to several hosting packages and have access to several web spaces associated with your account, select the required webspace in the Subscription menu at the top of the screen.
- Click the Websites & Domains tab.
- Click Add Subdomain.
- Specify the following:
- Let us create a subdomain first.
- In the Subdomain name box, type the subdomain name that you wish to create.
- Once the subdomain has been added, click on Hosting Settings.
- Under Hosting type, click change.
- Select the Forwarding option.
- In the Destination address box, type the Internet address to which you want to redirect visitors.
- Under Forwarding type, select the preferred type of forwarding. With standard forwarding, a user is redirected to the site, and the actual site's address is shown in the user's browser, so the user always knows that he or she is redirected to another address. With frame forwarding, a user is redirected to the site without knowing that the site actually resides at another location; therefore, frame forwarding should be preferred.
- Click OK.
Creating a 301 Redirect via a Web.config File
There are a few options for configuring a 301 redirect via a web.config file. The web.config file is typically located in the document root folder of your website. This file can be created if one does not already exist. A basic web.config file would contain the following configuration:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web>
</system.web>
<system.webServer> </system.webServer> </configuration>
The following entry can be appended to your web.config file to redirect an entire site or directory to a new location. For example, if you want http://example.com/olddir/ redirected to http://domain.com/ then open, or create, a web.config file in the ‘/olddir’ folder, and add the following line of code within the <system.webServer> section:
<httpRedirect enabled="true" destination="http://domain.com/" httpResponseStatus="Permanent" />
The following example is intended for redirecting a single page to a new location. For example, important pages of your site have .html extensions, and you want the new location to be its own directory, such as http://example.com/contact.html will change to http://example.com/contact/:
<configuration>
<location path="contact.html">
<system.webServer>
<httpRedirect enabled="true"
destination="http://example.com/contact"
httpResponseStatus="Permanent" />
</system.webServer>
</location>
<location path="about.html">
<system.webServer>
<httpRedirect enabled="true"
destination="http://example.com/about"
httpResponseStatus="Permanent" />
</system.webServer>
</location>
</configuration>
If you need help with configuring a 301 redirect within your web.config file, then please contact us via phone or Live Chat for assistance.