/, Know-how/TYPO3 Extension for Automated Redirects

TYPO3 Extension for Automated Redirects

TYPO3 Erweiterung für automatisierte Weiterleitungen

The problem

Every now and then it happens that pages in TYPO3-page trees get moved or page titles are modified. By using the RealURL extension for your website, the URL path is changed according to the new structure and the page is no longer available under the old path. The old link is, in most cases, still indexed in search engines or linked on other websites. In order for visitors and search engine crawlers to be able to find the website using the old link, one would have to manually set up a 301 redirect.

Previous solutions

For this purpose, a corresponding entry in the .htaccess file in the server’s web directory must be created. Often editorial staff do not have the necessary access to carry out such changes themselves.

Therefore, the work falls to an administrator who has to regularly update and maintain the list of redirects manually.

Alternatively, redirects can be automatically created when managed by the RealURL extension. Subsequently, PHP and MySQL are executed on every request of an old link. Particularly for large portals with many visitors, this can cause a significant increase in server load.

The key is ID

The goal for our solution was to develop a TYPO3 extension that simplifies the administration of redirects and is largely automated. The foundation on which the solution is built is the application of the TYPO3 Page-ID in the URL path. Because the ID is unique, the appropriate page can be found. The Page-ID is added to the last segment of the URL-path




If the page title of the TYPO3-page is modified, the path is changed, however the last segment of the URL, the ID stays the same. If the URL is retrieved using the old link, our extension checks the ID, determines the current correct path and provides a 301 redirect to the browser. Simultaneously, the old (invalid) and the new paths are saved in a record as a redirect rule on the server in order to be retrieved later from back end.

Overview of functions

  • Automatic redirect of moved webpages
  • Automatic redirect of renamed pages
  • Activation / deactivation of certain page types and pages
  • Optimized for Google article URLs
  • Compatible with proxy services e.g. Varnish
  • Compatible with TYPO3 6.2 – 7.6

Why automated redirects are worthwhile

Through the utilization of this extension, we have been able to successfully minimize the number of crawl errors and increase search engine ranking for our customers. From an economic perspective, the administrative and technical burden attributed to the creation and maintenance of redirect rules was greatly reduced. Our extension is an ideal supplement to your site, especially if you are using TYPO3 to run a large news portal with frequent editorial changes.

Need a similar solution? Contact us now!