Expression Editor のテキスト:
http.request.uri.path ~ "^/images/[^/]+/[^/]+/[^/]+$"Path > Rewrite to… > Dynamic の後のテキスト:
regex_replace(http.request.uri.path, "^/images/[^/]+/[^/]+/(.+)$", "/img/${1}")\/images/<FOLDER1>/<FOLDER2>/<FILENAME>\ へのリクエストを `/img/
/images/<FOLDER1>/<FOLDER2>/<FILENAME> のようなパスを、/img/<FILENAME> に書き換えるには、パスコンポーネントの動的な書き換えを伴うリライトルールを作成します:
Expression Editor のテキスト:
http.request.uri.path ~ "^/images/[^/]+/[^/]+/[^/]+$"Path > Rewrite to… > Dynamic の後のテキスト:
regex_replace(http.request.uri.path, "^/images/[^/]+/[^/]+/(.+)$", "/img/${1}")例えば、このルールは /images/nature/animals/tiger.png のパスを /img/tiger.png に書き換えます。