[TYPO3-english] page redirection with regular expressions

Éric Thibault Eric.Thibault at dc.ulaval.ca
Fri Feb 3 16:28:26 CET 2012


Hello to all.

We have a non-typo3 system that administrators use to enter “research projects” for students.  Each time, the administrators receive a link inviting them to fill in a quality service WEB survey.  As that system is generating strange URLs (different than our web site), I was asked if it was possible to create a page inside our Typo3 site having a more normal URL and redirects of the survey… as there are and will be a lot of surveys, I don’t want to create multiple pages inside my site!

Is there a way to use regular expressions to capture the URL parameter indicating the “research project” and append it to the redirecting URL in TypoScript?

Ex.: www.mycompany.com/surveynontypo3.html?project=1457789<http://www.mycompany.com/surveynontypo3.html?project=1457789> redirects to www.nontypo3researchprojets.com/prog/1023/survey.aspx?project=1457789<http://www.nontypo3researchprojets.com/prog/1023/survey.aspx?project=1457789>
www.mycompany.com/surveynontypo3.html?project=200145<http://www.mycompany.com/surveynontypo3.html?project=200145> redirects to www.nontypo3researchprojets.com/prog/1023/survey.aspx?project=200145<http://www.nontypo3researchprojets.com/prog/1023/survey.aspx?project=200145>

Thus always using the same page…

Thanks in advance!




More information about the TYPO3-english mailing list