When incoming requests match
- Wildcard pattern
- Request URL:
https://<YOUR_HOSTNAME>/blog/*
- Request URL:
Then rewrite the path and/or query
- Target path: [
/
]blog/*
- Rewrite to: [
/
]marketing/${1}
Create a URL rewrite rule (part of Transform Rules) to rewrite everything under /blog/<PATH>
to /marketing/<PATH>
.
To rewrite everything under /blog/<PATH>
to /marketing/<PATH>
, create a new URL rewrite rule and define a dynamic URL path rewrite using wildcard pattern parameters:
When incoming requests match
https://<YOUR_HOSTNAME>/blog/*
Then rewrite the path and/or query
/
] blog/*
/
] marketing/${1}
Make sure to replace <YOUR_HOSTNAME>
with your actual hostname and adjust the example paths according to your setup.