PHP CSV Redirects Module

PHP CSV Redirects
Content Type Details

ID:
Name: [MODULE] PHP CSV Redirects
Description: PHP code need for the redirects

NameDescriptionSizeTypeRequired
NameThe Name element80 CharactersPlain TextYes
Main LibraryLink to the Main Library PHP File 80 KilobytesMediaYes
CSV FileSelect CSV file with first column the URL that needs to redirect and second column the URL that redirect has to go102398976 KilobytesFileYes
Ignore QueryIn the From URL always ignore the variable passed via query80 CharactersCheck BoxNo
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 CharactersCheck BoxNo

Instructions:

  • This content type should be used in a section called “404"

  • Only one instance should be made and a CSV file is already in place there which has 2 columns, one in which URLs to be directed can be entered and another where these URLs should direct to

Example

For example, we have added an example if a user clicks or enters https://uscaedu-lb01-production.terminalfour.net/abc they will be redirected to https://uscaedu-lb01-production.terminalfour.net/About/