The Redirects menu allows you to implement 301 redirects for any page on your site, ensuring visitors are redirected to the correct location when URLs change.
Adding a New Redirect
To add a new redirect, click the Add button.
- The Old URL field must contain the URL that will redirect visitors to the new location. The system will automatically adjust the input data based on your site’s current URL structure. For example, if you input
/page-1in the Old URL field, the system will interpret it ashttps://www.example.com/page-1, using the path from Settings > Website Address. - The New URL field should contain the destination URL where visitors will be redirected. There are three types of redirect you can use for the New URL:
- Absolute path (full URL)
- Relative path, based on the domain name
- Relative path, based on the current location of the site
Absolute Path
An absolute path uses the complete page URL.
Example:
- Old URL:
/page-1 - New URL:
https://www.example.com/page-2
Relative Path, Based on Domain Name
This type of redirect is relative to the domain name. Specify the page’s name with a / sign.
Example:
- Old URL:
/page-1 - New URL:
/page-2
If your domain is www.example.com and the New URL is /page-2, the visitor will be redirected to https://www.example.com/page-2. If your site is located in a subfolder (e.g. https://www.example.com/subfolder/page-2), the system will still redirect visitors according to the root domain name, resulting in https://www.example.com/page-2.
Relative Path, Based on Current Location of the Site
In this type of redirect, the visitor is redirected based on the site’s current location. You specify the page’s name without the / sign.
Example:
- Old URL:
/page-1 - New URL:
page-2
If your domain is https://www.example.com/subfolder (where “subfolder” is your site’s directory) and the New URL is page-2, the visitor will be redirected to https://www.example.com/subfolder/page-2. The system uses the path from Settings > Website Address.
WildCard Redirects
The WildCard feature allows you to redirect users from multiple URLs based on a specific pattern.
For example, if you want to redirect any URLs that start with /calendar-for-groups/ to the /events page, use a * sign after /calendar-for-groups/ in the Old URL field. This will automatically redirect all URLs containing /calendar-for-groups/ to /events.
Example:
- Old URL:
/calendar-for-groups/* - New URL:
/events
Disable WildCard
By default, the system interprets an asterisk * in the URL as a WildCard expression. If you disable this feature, the system will treat the asterisk as part of the actual URL.
For instance, entering https://example.com/profile/Nice* in the New URL field will redirect users to /Nice*.
