Manually redirect a page
- Applies to:
- All MindTouch Versions
- Role required:
- Draft Contributor
In most cases Expert automatically creates page redirects, but there may be times when you need to create a manual redirect. For example, if you want to send visitors to a central page for deprecated content, or if a dated external URL that was not set up as a Content ID is sending traffic to a 404 page on your site.
Add a manual redirect
Edit your outdated page
- Navigate to the outdated page.
- Open the page in Edit mode.
You must edit the page as a Live page. Redirecting is NOT supported for Draft pages.
- From the editor toolbar, select View > Source.
- Delete all existing content or code on the page.
- Copy the following code into the page. Make sure to include the double brackets.
#REDIRECT [[path/to/page]]
- Replace
path/to/page
in the code with the path of the page to redirect to.
The path is the part of the URL after your domain. for example https://www.example.com/Advanced-content/ Videos.Redirects can only be set to another page on your site. External redirects outside your site are not supported.
- If the URL contains encoded characters, the redirect snippet URL's special characters must be changed to decoded format.
- Do not change to the WYSIWYG / Visual view before saving or the redirect will NOT work.
- Click Save.
If the outdated page no longer exists
If you have deleted an outdated page, the page may show up as a 404 (page not found) in Google. If you are getting substantial traffic to a non-existent page, restore the deleted page or recreate the page with the same title in the same location.
Troubleshooting
- Does your destination path contain punctuation or special symbols? Use a URL Decoder tool to resolve any special punctuation in the URL.
- Did you exit Source view before saving? Repeat the redirect steps, and make sure to save before you leave the Source / HTML view.
- Is your path surrounded by double brackets? If not, make sure to add them back in.
It is not possible to manually redirect a page to a Path.
Remove a manual redirect
When you add a redirect to a page, Expert treats the page as deleted. To remove a manual redirect, restore the deleted page.