[TYPO3-english] page redirection with regular expressions

Bernd Wilke t3ng at pi-phi.tk
Fri Feb 3 16:35:26 CET 2012


On 02/03/2012 04:28 PM, Éric Thibault wrote:
> 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>
>

you may redirct using .htaccess
this way you can use regexp

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list