1. Adventist Web Engine
  2. Solution home
  3. Building
  4. Website advanced topics

Creating a redirect

Overview


Redirects are used on the Web module, to accept a source URL and redirect it to a new destination. Often when building a new website for updating an existing website, the structure of the new website will be different than the old website structure. Redirects are used to avoid the users receiving a 404 error, when the link is no longer working.


Redirects can also be used for redirecting a page or show of the website to a new destination.


How to


Redirect a Show to a new URL (a new slug for the show)

Navigate to the show in the Media Library and make the update.

  • Expand the Media Library module.
  • Click on the Name of the Channel.
  • Locate the Show in the list of shows.
  • Click on Action menu for the show and select Edit.
  • Under the General tab, Basic information, locate the Slug.
  • Click on the Modify button.
  • Adjust the slug as needed.
  • Click the Change button to accept the changes.
  • Click on the Save button to save this update.
  • (Please consider as well if you have any hard-coded references to the old URL.)


Redirect a URL to another website

Navigate to the Redirects submodule and add the redirect for the existing URL.


  • Expand the Web module.
  • Expand the website.
  • Click on the Redirects submodule.
  • Use the Search field to verify no redirect exists.
  • If there is no existing entry, click on the Add button.
  • Example:

           Source:  /shows/test-show

           Target:  https://adventist.news/

  • Set a checkmark for the Permanent checkbox.
  • If you have a dynamic URL, see the notes on match pattern.
  • Note: Please consider the possible paths for the page/show you want to redirect. There may be multiple redirects to add, one per path.



Additional information



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article