# Discourseフォーラムのドメイン変更後のリダイレクトについてヘルプが必要です

**URL:** <https://meta.discourse.org/t/need-help-with-redirection-after-changing-the-domain-of-my-discourse-forum/275964>\
**Category:** Self-hosting\
**Created:** [2023 年 8 月 21 日午前 1:29 UTC](https://meta.discourse.org/t/need-help-with-redirection-after-changing-the-domain-of-my-discourse-forum/275964 "2023-08-21T01:29:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2023 年 8 月 21 日午前 11:33 UTC](https://meta.discourse.org/t/need-help-with-redirection-after-changing-the-domain-of-my-discourse-forum/275964/6 "2023-08-21T11:33:18Z")

</div>

現在のフォーラムを削除すると仮定すると、それは通常の Apache または nginx リダイレクトです。

nginx の場合

```plaintext
server {
    server_name original.example.com;
    location / {
        rewrite ^/(.*)$ https://new.example.com/$1 permanent;
    }
}

```

または Apache の場合

```plaintext
RewriteEngine On
RewriteRule ^(.*)$ https://new.example.com/$1 [R=301,L]

```

Discourse のみを移動し、移行しないという部分を見落としていました。ドメインのみを移動する場合、パーマリンク リダイレクトは必要ありません。

---

_[View the full topic](https://meta.discourse.org/t/need-help-with-redirection-after-changing-the-domain-of-my-discourse-forum/275964)._
