Create a redirect
Log in to add to favouritesThere are two ways to create a redirect – within Contensis or by using the Management API. This guide will take you through setting one up in Contensis.
To create a redirect, you’ll need to be a System Administrator or a member of a role with redirect permissions.
- Navigate to the Redirect listing screen by pressing Settings in the sidebar and selecting Redirects from the menu.
- Select New redirect from the toolbar. The New redirect window will open.
- Redirect type: You will first need to choose an appropriate redirect type. There are two options:
- Source domain: The source domain will be automatically set to All domains for any domain that is part of the project. However, you can choose a specific domain if required.
- Match type: These properties determine how the URL should be matched.
- Exact (default) – The redirect will only apply to a direct match to the string, such as
/about-us/.
- Starts with – The redirect will apply for any URL that starts with the value. For example,
/about
would redirect for/about-us
as well as/about-us/company/
- Regular expression (PCRE) – String matching using regular expressions based on the PCRE format. Use a service like regex101 to validate your expression.
- Exact (default) – The redirect will only apply to a direct match to the string, such as
- Append source path to the destination: When this toggle is switched on, it will append the original URL to the end of the URL in the browser address bar as a query string parameter.
- Destination: The new destination URL the source URL should redirect to.
- Press Publish to create your new redirect.