Manual Redirects
Manual redirects are especially helpful in these situations:
When you are moving from a current documentation portal to Heretto Portal and the domain name is the same after the move.
When you change your domain name. For example, your help site domain changed from docs.company-name.com to help.company-name.com.
Important Considerations
Automatic redirects manage redirects for any URL changes within Heretto Portal. If you do configure manual redirects, they override automatic redirects. For details, see Automatic Redirects.
Only set up manual redirects when you're moving from a current documentation site to Heretto Portal.
Manual redirects are supported in active sync and manual deployments.
Configure Redirects for Individual Pages
You can manually configure URL redirects for individual pages in different portal environments by adding them to the config.json file linked to your main portal sitemap. This method supports scenarios not covered by automatic redirects.
Configuring redirects for individual pages doesn't require any specialized skills and can be done by any user with the right permissions.
-
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 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
You can manually configure URL redirects for sets of pages in different portal environments by adding them to the config.json file linked to your main portal sitemap. This method supports scenarios not covered by automatic redirects.
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.
-
Ensure that for each page for which you want to configure redirects you have a pair of old and new URLs ready.
-
Ensure you have the permissions to edit the main config.json file associated with your main portal sitemap.
Follow this procedure to configure redirects 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.