When incoming requests match
- Wildcard pattern
- Request URL:
https://<YOUR_HOSTNAME>/news/2012/*
- Request URL:
Then rewrite the path and/or query
- Target path:
/news/2012/* - Rewrite to:
/archive/news/2012/${1}
Create a rewrite URL rule (part of Transform Rules) to rewrite any requests for /news/2012/... URI paths to /archive/news/2012/....
To rewrite all requests to /news/2012/... to /archive/news/2012/... you must add a reference to the content of the original URL. Create a new rewrite URL rule and define a dynamic URL path rewrite using wildcard pattern parameters:
When incoming requests match
https://<YOUR_HOSTNAME>/news/2012/*Then rewrite the path and/or query
/news/2012/*/archive/news/2012/${1}Make sure to replace <YOUR_HOSTNAME> with your actual hostname and adjust the example paths according to your setup.