Example
Text in Expression Editor:
Text after Path > Rewrite to… > Dynamic:
To rewrite paths like /images/<FOLDER1>/<FOLDER2>/<FILENAME>
— where <FOLDER1>
, <FOLDER2>
, and <FILENAME>
can vary — to /img/<FILENAME>
, create a rewrite URL rule with a dynamic rewrite of the path component:
Example
Text in Expression Editor:
Text after Path > Rewrite to… > Dynamic:
For example, this rule would rewrite the /images/nature/animals/tiger.png
path to /img/tiger.png
.