PHP CSV Redirects Module

Component Library

Content Type

ID: 363
Name: PHP CSV Redirects Module
Description: Handle the 404 page for the main website. This Content Type will allow the user to upload a CSV file of redirects. Create a content item at Home > 404.

How to use

This content type allows the user to add redirects to the 404 page.

  • a single content item is added to the 404 section (Home » 404)
  • select the PHAR file from the Media Library (media ID: 11611, uploaded to Categorised > USG > T4 Build > Site Assets > PHP Redirect Module)
  • upload a CSV file with the old URL in column 1 and the new URL in column 2
  • check the Ignore Query element for query strings to be ignored
  • check the Exact Match element to redirect only if an exact match is found

You will find further guidance on the T4 Redirect Module in the Terminalfour documentation.

Content Element Details

NameDescriptionSizeTypeRequired
NameThe Name Element80 CharactersPlain Texttrue
Main LibraryLink to the Main Library PHP File 100 CharactersMediatrue
Ignore QueryIn the From URL always ignore the variable passed via query80 CharactersCheckboxfalse
Exact MatchIf selected it will always redirect only if an exact match, otherwise it will check if the From URL is 85% close the list of URL provided80 CharactersCheckboxfalse
CSV FileSelect CSV file with first column the URL that needs to redirect and second column the URL that redirect has to go. A wildcard (*) character can be used in either or both.1024 CharactersFiletrue