With the upgrade to TYPO3 v9 a new module was introduced. The module Redirects allows you to make URL redirects. This tutorial explains how the module works. This module replaces the Speaking URL module, while the functions are similar, but not exactly the same. The section Creating a Redirect explains in more detail what this means for each case. The module is available only for users with the Site Admin permission.
A redirect means that the called URL calls another page. For example, you can redirect the URL 'easyweb.unibas.ch/redirect' to the URL 'easyweb.unibas.ch/en/pages/hallo-welt'. Thus, simple URLs can be created that redirect to a specific page. This is very practical, for example, if a page is to be created for an event. The use of redirects is very versatile.
In addition, redirects are also created automatically, for example, when a page is moved. An automatically created redirect ensures that the old URL still works. This is important if it is referenced externally, for example.
A redirect can also be used to redirect to an external page.
With the module Redirects you have the possibility to create Speaking URLs. With a Speaking URL, the URL segment is not named after the folder structure (hierarchy in the page tree) of the pages, but can be customized manually. In addition, Speaking URLs are not bound to the language abbreviation if they were created in the Redirects module.
Create new redirect. The 'source path' of the redirect is without language abbreviation in this case.
If you want to create a rediredt, proceed as follows:
Additional information about target
If the target is included via the Browser link, the page is called in the default language. So if the target should be another language, the corresponding URL must be inserted.
Now you can test the entry by entering the redirect URL. It should be called now with the input of both URLs the desired side (input with target).
Important - Be aware of the following when creating redirects:
As soon as at least one forwarding has been configured, it is displayed in the overview. The overview is displayed when the Redirects module is selected.
You can filter the overview by the attributes source computer, source path, destination and status code. With the quick actions you can (from left to right):
If you want to edit the redirect, you have the same options as when creating a redirect.
Attention - certain redirects are created automatically. If such are deleted, it is possible that corresponding redirects will not work anymore.
In this section, a possible solution to a specific use case is explained.
Use Case:A page editor wants to completely revise the content of a page. To avoid hiding the page, the page editor creates a copy of the desired page, which will replace the old one after editing. The URL of the old page at this time is called "https://easyweb.unibas.ch/alte-seite". The URL of the new page is "https://easyweb.unibas.ch/alte-seite-copy". Thus the page can still be called with the old URL. When the page editor has finished working on the new page, they want the new page to have the old URL. The content of the new page has been verified by peers, so it can replace the old one.
The recommended workflow is:
The advantage of this workflow is that the new content can be viewed and the current page is accessible at the same time. Additionally it is easy to fix errors. If in the other workflow an error happens with the input of the URL or similar, this is more difficult to solve.
The following can be done to replace the old page with the new one. The steps are all to be done in the Edit Page Properties menu in the General and Access tab of the respective page:
We do not recommend to use this workflow. It makes more sense to leave the used page and only change the content. Redirects will be created, which will become more and more if a page is frequently revised in this way.
Essentially, in easyWeb standard a shortcut is a page and a redirect - as the term suggests - is a redirection. A shortcut is displayed in the frontend, for example in the navigation. Thus, a shortcut is comparable to a link that can be selected by the visitor. A redirect is a server-side forwarding. With a shortcut, the target URL is displayed to the website visitor, but not with a redirect. The redirect cannot be selected by a website visitor in the same way as a shortcut.
The following is a suitable example: A shortcut that links to an external website is visible as such in the frontend. One sees the target URL. With a server-side redirect, the website visitor only sees the destination of the current website - the destination of the redirect is only visible after clicking the link. Now it may be that the redirect points to an external website.