Managing redirection of domains and URLs within your sites and pages. This can be for general use, or when a site/location has been permanently closed.
Below are the various redirects you can add within the Site Builder:
- Site Redirects - Redirect other domains/subdomains to your Site
- Page Redirects - Redirect paths within a Site to your Pages
- Full Path Redirects - Advanced option allowing a redirect from any path within a Site to anywhere
Terminology Used
- domain/subdomain - this is the "hostname" part of the URL and is entered without the scheme ("http/https") and without a path after it (ex: www.example.com)
- path - the part of the URL that is present after the domain; always starts with a slash (ex: /example-path/)
Site Redirects
These allow you to redirect from other domains (i.e. somesubdomain.example.com) to the domain of the current Site. This type of redirect is great if you are moving an entire site from one domain to another, as it will redirect all traffic to subpages to the Site's domain. It can also be used to create an "alias" from one domain to another.
You can manage these redirects from the Site Builder under "Site > Settings > Site Redirects".
Adding the Redirect
- Domain - Enter the full domain without http/https and without a path at the end (ex: subdomain.example.com)
- Status - You have two options on the "Status Code" to return on the redirect. Normally, you will want to leave the status as 301.
Example Behavior
After this is completed, here are some examples of the behavior:
- http://somesubdomain.example.com/ - would redirect to the home page/ on the Site
- http://somesubdomain.example.com/example-page-url/ would redirect to /example-page-url/ on the Site
Page Redirects
These redirects allow you to redirect from one path within a Site to a specific page within the Site Builder. This type of redirect is typically used to redirect old or deleted page URLs to their new location. These are also preferred compared to "Full Path Redirects" because if you change the Path of the published page, then the old page redirects you have already set up will start redirecting to the new page automatically.
You can manage these redirects from the Site Builder by loading up the page you want to redirect to, and then going to "Page > Page Options > Page Redirects".
Adding the Redirect
- Redirect from - Enter the path (starting with a slash) you want to redirect from (ex: /contact.php)
- Status - You have two options on the "Status Code" to return on the redirect. Normally, you will want to leave the status as 301.
Example Behavior
By entering /contact.php as the "from", visiting /contact.php would redirect to your page's current URL.
Full Path Redirects
These redirects allow you to manually redirect any path within an existing Site to another path or external URL. In most cases when possible, it is recommended to use a Page Redirect instead. Full Path redirects are useful for creating redirects to URLs that do not have a dedicated page, like Blog Posts or Product pages within a Site. These redirects can also be used to redirect paths within a Site to external URLs on other domains.
You can manage these redirects from the Site Builder under "Site > Settings > Full Path Redirects".
Adding the Redirect
- Redirect from - Enter the path you want to redirect when visited. Start the path with a slash (ex: /contact.php)
- Redirect to - Enter the path (starting with a slash) or enter a full URL (starting with https://) to the destination page you want to redirect to (ex: /new-contact-page/)
- Status - You have two options on the "Status Code" to return on the redirect. Normally, you will want to leave the status as 301.
Example Behavior
- By entering /contact.php as the "from" and /new-contact-page/ as the "to", visiting /contact.php would redirect to /new-contact-page/ under the Site.
- By entering /contact.php as the "from" and https://example.com/new-contact-page/ as the "to", visiting /contact.php inside the Site to would redirect to https://example.com/new-contact-page/ outside of the Site.
Note: If you want to implement a full Path Redirect for a previously existing page, such as a disabled location page, please make sure that page has been fully disabled and the site deleted before doing so, otherwise the redirect will produce an error.