nystudio107 / retour

DEPRECATED Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
Other
168 stars 24 forks source link

creating static redirects based on url parameters #88

Closed rolfkokkeler closed 6 years ago

rolfkokkeler commented 7 years ago

I have page visits with paths like: http://eu.aoc.com/en/products?showUid=10&useCacheHash=1

These seem to originate from Typo3 systems, I do not want these visits. I'm trying to deny access to the site using the following Legacy URL pattern: (.*)showUid(.*) with regex match with redirect to homepage status 410.

This however does not redirect.

khalwat commented 6 years ago

Verify that your RegEx matches as expected; as long as visiting the URL throws a 404, and the RegEx matches, Retour will handle it.

Can be helpful: https://regexr.com/