# 301 redirects maken van een oude Discourse site naar een nieuwe

**URL:** https://meta.discourse.org/t/create-301-redirects-from-an-old-discourse-site-to-a-new-one/174298
**Category:** Marketplace
**Created:** [26 december 2020 om 16:41 UTC](https://meta.discourse.org/t/create-301-redirects-from-an-old-discourse-site-to-a-new-one/174298 "2020-12-26T16:41:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![samsolomon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samsolomon/32/111429_2.png) [@samsolomon](https://meta.discourse.org/u/samsolomon)
#### Post date: [26 december 2020 om 16:41 UTC](https://meta.discourse.org/t/create-301-redirects-from-an-old-discourse-site-to-a-new-one/174298/1 "2020-12-26T16:41:27Z")

</div>

**What would you like done?**  
I am moving content from an old Discourse site to a new domain and server (also Discourse). I’ve restored a backup of the old site on a new server with the new domain pointing to that IP address.

I need someone to setup 301 redirects from URLs my old domain to the new domain so that search engines recognize the move. Since this is restored from a backup, the URLs are one-to-one. For any old URL I should be able to open the network tab in inspect and see that:

`https://domain-a.com/t/topic-name/100`

has a 301 status code and redirects to

`https://domain-b.com/t/topic-name/100`

Because of SSL I believe this needs to be done with Nginx, but am open to other ideas.

**When do you need it done?**  
Within the next week or two? The sooner the better, but I know schedules are a bit nuts with the holidays.

**What is your budget, in $ USD that you can offer for this task?**  
$75

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [26 december 2020 om 18:26 UTC](https://meta.discourse.org/t/create-301-redirects-from-an-old-discourse-site-to-a-new-one/174298/2 "2020-12-26T18:26:09Z")

</div>

Drop me an email to [bhanu@orng.co](mailto:bhanu@orng.co) I can help with this.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [26 december 2020 om 18:52 UTC](https://meta.discourse.org/t/create-301-redirects-from-an-old-discourse-site-to-a-new-one/174298/3 "2020-12-26T18:52:48Z")

</div>

I would just connect the old domain name to a cpanel hosting (or any hosting at all, something to host the domain) and then using htaccess make the redirect. Since the old domain is being redirected and all the content is already migrated, the goal is to redirect the old domain name to the new one. Considering that, it doesn’t matter if the old domain is still contented to a discourse install.

This way you don’t even have to keep the old server’s instance.

You can use something like this:

```plaintext
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !new-example.com$ [NC]
RewriteRule ^(.*)$ https://new-example.com/$1 [L,R=301]

```

Above code will follow the old links to new ones. So if the old url is [old-example.com/t/anything](http://old-example.com/t/anything) , it will be redirect to [new-example.com/t/anything](http://new-example.com/t/anything)

---

<div class="post-metadata">

### Author: ![samsolomon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/samsolomon/32/111429_2.png) [@samsolomon](https://meta.discourse.org/u/samsolomon)
#### Post date: [28 december 2020 om 19:44 UTC](https://meta.discourse.org/t/create-301-redirects-from-an-old-discourse-site-to-a-new-one/174298/4 "2020-12-28T19:44:05Z")

</div>

Ah, this is an excellent idea that I had not considered.

Thank you!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [27 januari 2021 om 19:44 UTC](https://meta.discourse.org/t/create-301-redirects-from-an-old-discourse-site-to-a-new-one/174298/5 "2021-01-27T19:44:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
