You can send visitors from one address to another - for example from an old domain to your new one, or from HTTP to HTTPS. On our Windows (Plesk) hosting there are three common ways, depending on what you want to redirect.
1. Redirect a whole domain to another website
Use this when the domain should not have its own website at all.
- Log in to Plesk, click Websites & Domains and find the domain you want to redirect.
- Open Hosting & DNS > Hosting and click Change next to the hosting type (or the Hosting Type link).
- Choose Forwarding.
- Enter the Destination address, e.g. https://www.newdomain.com.
- Choose Moved permanently (code 301) for search-engine-friendly redirects, or Moved temporarily (code 302) if it is temporary.
- Click OK.
Warning: Switching to Forwarding removes the domain's website hosting. Back up any files in its httpdocs folder first. Email on the domain is not affected.
2. Redirect HTTP to HTTPS
- Open the domain's Hosting & DNS > Hosting page.
- Tick Redirect visitors from HTTP to HTTPS via a SEO friendly 301 redirect (called "Permanent SEO-safe 301 redirect from HTTP to HTTPS" in some versions) and click Save.
Your site needs a working SSL certificate first. See How to Redirect HTTP to HTTPS on Windows Hosting.
3. Redirect single pages or folders (web.config)
To redirect individual pages while keeping the site, add rules to your site's web.config (edit it in Files > httpdocs). Add the <rule> inside an existing <rewrite><rules> section if you have one:
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Old page to new page" stopProcessing="true">
<match url="^old-page\.aspx$" />
<action type="Redirect" url="/new-page" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
- Back up web.config before editing. Duplicate sections cause a 500.19 error.
- WordPress sites can use a redirect plugin instead.
Choosing 301 or 302:
- 301 (permanent): the page has moved for good; search engines transfer rankings to the new address. Browsers cache it, so test carefully.
- 302 (temporary): for short-term moves such as maintenance pages.
Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.