コンテンツにスキップ

ドメインのリクエストを新しいドメインにリダイレクトする

ドメインのすべてのURLを新しいドメインのルートにリダイレクトするためのリダイレクトルールを作成します。古いドメインのサブドメインも含まれます。

この例では、古いウェブサイトが廃止され、異なるドメインの新しいウェブサイトに置き換えられました。機能は異なり、すべてのURLは新しいドメインのルートを指す必要があります。古いドメインのサブドメインにも同様のことが当てはまります。

  1. 次のURLリダイレクトを使用してバルクリダイレクトリストを作成します:

    • Source URL: example.com/
    • Target URL: https://example.net/
    • Subpath matching: 有効
    • Include subdomains: 有効
    • Preserve path suffix: 無効
  2. このリストを有効にするバルクリダイレクトルールを作成します。

この設定は、次のリダイレクトを実行します:

Request URLURL after redirect
http://example.com/https://example.net/
https://example.com/https://example.net/
https://subdomain.example.com/https://example.net/
https://example.com/my/path/to/page.htmhttps://example.net/
https://example.com/search?q=termhttps://example.net/