Expression Editor のテキスト:
starts_with(http.request.uri.path, "/news/2012/")Path > Rewrite to… > Dynamic の後のテキスト:
concat("/archive", http.request.uri.path)\/news/2012/...\ URI パスへのリクエストを `/archive/news/2012/...` に書き換えるリライトルールを作成します。
/news/2012/... へのすべてのリクエストを /archive/news/2012/... に書き換えるには、元の URL のコンテンツへの参照を追加する必要があります。新しいリライトルールを作成し、式を使用して動的な URL パスのリライトを定義します。
Expression Editor のテキスト:
starts_with(http.request.uri.path, "/news/2012/")Path > Rewrite to… > Dynamic の後のテキスト:
concat("/archive", http.request.uri.path)フィルターは、/news/2012/ で始まるすべてのパスに対して starts_with() 関数を使用します。動的パスのリライトは、HTTP リクエストの元の URL パスにプレフィックスを連結するために concat() 関数を使用します。