Text in Expression Editor:
Text after Path > Rewrite to… > Dynamic:
Create a rewrite URL rule (part of Transform Rules) to rewrite everything under /blog/<PATH>
to /marketing/<PATH>
.
To rewrite everything under /blog/<PATH>
to /marketing/<PATH>
you must modify the first component of the path (/blog/
). Create a rewrite URL rule and use the regex_replace()
function for this purpose:
Text in Expression Editor:
Text after Path > Rewrite to… > Dynamic:
The regex_replace()
function matches the path component on a regular expression (^/blog/
) and then provides a replacement for that match (/marketing/
).