受信リクエストが一致する場合
- ワイルドカードパターン
- リクエストURL:
http://store.example.com/admin*
- リクエストURL:
次に
- ターゲットURL:
https://store.example.com/${1} - ステータスコード: 301
- クエリ文字列を保持: 有効
\store.example.com\の管理エリアへのリクエストをHTTPSにリダイレクトするルールを作成し、元のパスとクエリ文字列を保持します。
この例では、ゾーンexample.comの単一リダイレクトが、特定のサブドメイン(store.example.com)の管理エリアへのリクエストをHTTPSにリダイレクトし、元のパスとクエリ文字列を保持します。
受信リクエストが一致する場合
http://store.example.com/admin*次に
https://store.example.com/${1}例えば、リダイレクトルールは以下のリダイレクトを実行します:
| リクエストURL | ターゲットURL | ステータスコード |
|---|---|---|
http://store.example.com/admin/products/ | https://store.example.com/admin/products/ | 301 |
https://store.example.com/admin/products/ | (変更なし) | n/a |
http://store.example.com/admin/?logged_out=true | https://store.example.com/admin/?logged_out=true | 301 |
http://store.example.com/?all_items=true | (変更なし) | n/a |
http://example.com/admin/ | (変更なし) | n/a |