受信リクエストが一致する場合
- ワイルドカードパターン
- リクエストURL:
http*://smallshop.example.com/*
- リクエストURL:
その場合
- ターゲットURL:
https://globalstore.example.net/${2} - ステータスコード: 301
- クエリ文字列を保持: 有効
\smallshop.example.com\へのすべてのリクエストをHTTPSを使用して異なるホスト名にリダイレクトするリダイレクトルールを作成し、元のパスとクエリ文字列を保持します。
この例の単一リダイレクトは、smallshop.example.comへのすべてのリクエストを異なるホスト名globalstore.example.netにHTTPSを使用してリダイレクトし、元のパスとクエリ文字列を保持します。
受信リクエストが一致する場合
http*://smallshop.example.com/*その場合
https://globalstore.example.net/${2}例えば、リダイレクトルールは以下のリダイレクトを実行します:
| リクエストURL | ターゲットURL | ステータスコード |
|---|---|---|
http://smallshop.example.com/ | https://globalstore.example.net/ | 301 |
http://smallshop.example.com/admin/?logged_out=true | https://globalstore.example.net/admin/?logged_out=true | 301 |
https://smallshop.example.com/?all_items=1 | https://globalstore.example.net/?all_items=1 | 301 |
http://example.com/about/ | (変更なし) | n/a |