コンテンツにスキップ

訪問者を新しいページURLにリダイレクトする

`/contact-us/` からページの新しいパス `/contacts/` へのリダイレクトルールを作成します。

この例の静的リダイレクトは、ゾーン example.com に対して、/contact-us/ ページをリクエストする訪問者を新しいページURL /contacts/ にリダイレクトします。

受信リクエストが一致する場合

  • Field: URI Path
  • Operator: equals
  • Value: /contact-us/

Expression Editorを使用している場合は、次の式を入力してください:
http.request.uri.path eq "/contact-us/"

次に

  • Type: Static
  • URL: /contacts/
  • Status code: 301
  • Preserve query string: 有効

例えば、リダイレクトルールは次のリダイレクトを実行します:

Request URLTarget URLStatus code
example.com/contact-us/example.com/contacts/301
example.com/contact-us/?state=TXexample.com/contacts/?state=TX301
example.com/team/(変更なし)n/a