Our site has two websites with different domains. For security reasons, we want to sanitize the URl which has tags. I am not sure how to add a case insensitive redirection applicable for both domains for this scenario in routes.yaml through the regex.
Example:
Domain 1: www.domain1.com
Domain 2: www.domain2.com
I want the URLs which has tag in it either in the path or as a query string to be redirected to the specific domain home page.
www.domain1.com/cms/\<script> ---> www.domain1.com
www.domain2.com/test?\<script> ---> www. domain2.com