Heretto Portal Redirects
Portal Redirects Overview
You can set up redirects within one portal environment and between different portal environments.
You can also set up redirects for specific, individual pages as well as for sets of pages.
Redirects are especially helpful in these situations:
When you change your domain name. For example, your help site domain changed from docs.company-name.com to help.company-name.com.
When you are moving from a current documentation portal to Heretto Portal and the domain name is the same after the move.
When you update the names of parent elements in your sitemap. For example, when you change the name of a sitesection (navigational tile), topichead, or the title of a topic under which there is content.
When you move a single file or a group of files in the sitemap. For example, when you move a map from one sitesection to another.
Configure Redirects for Individual Pages
-
Ensure you have the permissions to edit the main config.json file associated with your main portal sitemap.
-
Ensure that for each page for which you want to configure redirects you have a pair of old and new URLs ready.
Follow this procedure to configure redirects within one portal environment as well as between different portal environments.
Test the redirects by going to the old URLs. If the page opens at the new URL, your redirects are configured accurately.
Be sure to push the config.json file from the master branch to your staging and production branches. Publish the changes.
Configure Redirects for Sets of Pages
When a set of pages is affected by a single change, instead of configuring redirects for each page individually, you can configure redirects for the entire set. To do that, you need to use regular expressions (regex). We recommend that this configuration is done by users familiar with regex.
An example of a situation when a set of pages is affected by a single change is when the name of a sitesection (navigational tile) gets changed and therefore all links leading to content under that tile change.
-
Ensure you have the permissions to edit the main config.json file associated with your main portal sitemap.
-
Ensure that for each page for which you want to configure redirects you have a pair of old and new URLs ready.
Follow this procedure to configure redirects within one portal environment as well as between different portal environments.
Test the redirects by going to the old URLs. If the page opens at the new URL, your redirects are configured accurately.
Be sure to push the config.json file from the master branch to your staging and production branches. Publish the changes.