A redirect allows visitors to your site to be redirected from a non-existing or no longer valid page to an existing, relevant page. Help improve your overall site health and clean up any broken links or 404s (pages not found) you may have encountered through running your web analytics. Manual redirects are also helpful if you want to guide your customers to a central page for unsupported or deprecated content (view an example of a central deprecation page).
Why would I want to redirect a page?
Let's say you want users who visit the outdated page "How to build an awesome page" to be redirected to a more current article called "Build pages for SEO" and you don't want to delete the outdated page, to avoid your users being presented with 404 (page not found) messages.
Add a manual redirect
Let's say you want users who visit the outdated page "How to build an awesome page" to be redirected to a more current article called "Build pages for SEO." Follow the steps below to redirect the user:
Step 1: Edit your outdated page
- Navigate to the outdated page.
- Open the page in Edit mode.
You MUST edit the pages in Live mode. Redirecting is NOT supported in Draft mode.
Step 2: Add the redirect code
- From the editor toolbar, select View > Source.
- Copy the following code into the page.
Step 3: Enter the path of the page to redirect to
path/to/pagein the above code with the path of the page to redirect to. The path is the part of the URL after your domain (e.g. https://www.example.com/Advanced-content/ Videos). Make sure not to remove the double brackets!
- Click Save.
Do NOT change to the WYSIWYG view before saving or the redirect will NOT work.
What if I the outdated page no longer exists?
If you have deleted an outdated page, the page may show up as a 404 (a page not found) in Google. If you are getting substantial traffic to a non-existing page, recreate the page. Simply put the page's old URL in your browser's address bar and MindTouch automatically recreates the page. Give your page a title, and follow steps 4–7 above.
Redirect not working? Check for the following:
- Does your destination path contain punctuation or special symbols? If so, navigate to the page and edit the URL to include letters only.
- Did you exit Source view before saving? Repeat the redirect steps and make sure to save before.
- Is your path surrounded by double brackets? If not, make sure to add them back in.
Learn how to stop a redirect.