# WordPress から Discourse への移行（301 リダイレクトの問題）

**URL:** https://meta.discourse.org/t/moveing-from-wordpress-to-discourse-301-redirect-problem/108220
**Category:** Support
**Created:** [2019 年 2 月 2 日午後 7:36 UTC](https://meta.discourse.org/t/moveing-from-wordpress-to-discourse-301-redirect-problem/108220 "2019-02-02T19:36:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![szergely](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/szergely/32/119847_2.png) [@szergely](https://meta.discourse.org/u/szergely)
#### Post date: [2019 年 2 月 2 日午後 7:36 UTC](https://meta.discourse.org/t/moveing-from-wordpress-to-discourse-301-redirect-problem/108220/1 "2019-02-02T19:36:30Z")

</div>

Hi All!

I installed discourse instead of Wordpress and I’d like to forward a few links which I’ve tried with the following:

`Permalink.create(url: 'https://teslasok.hu/2018/02/zambelly-gyuri-ferfi-aki-ismeri-titkot-hogy-tesla-ne-legyen-egy-remalom/', url: 'https://teslasok.hu/t/tesla-szervizelese-es-garancialis-ugyintezese/33')`

However, unfortunately it doesn’t work.

* * *

The 404 old wordpress url: [https://teslasok.hu/2018/02/zambelly-gyuri-ferfi-aki-ismeri-titkot-hogy-tesla-ne-legyen-egy-remalom/](https://teslasok.hu/2018/02/zambelly-gyuri-ferfi-aki-ismeri-titkot-hogy-tesla-ne-legyen-egy-remalom/)’

The new discourse working url: [https://teslasok.hu/t/tesla-szervizelese-es-garancialis-ugyintezese/](https://teslasok.hu/t/tesla-szervizelese-es-garancialis-ugyintezese/)

Any tips on how can get a 301 redirect on the old url and load the new one in discourse?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019 年 2 月 2 日午後 9:31 UTC](https://meta.discourse.org/t/moveing-from-wordpress-to-discourse-301-redirect-problem/108220/2 "2019-02-02T21:31:24Z")

</div>

Better to create the permalink with the topic id.

---

<div class="post-metadata">

### Author: ![szergely](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/szergely/32/119847_2.png) [@szergely](https://meta.discourse.org/u/szergely)
#### Post date: [2019 年 2 月 5 日午前 10:11 UTC](https://meta.discourse.org/t/moveing-from-wordpress-to-discourse-301-redirect-problem/108220/3 "2019-02-05T10:11:54Z")

</div>

Can you please explain this to me.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019 年 2 月 5 日午後 1:05 UTC](https://meta.discourse.org/t/moveing-from-wordpress-to-discourse-301-redirect-problem/108220/4 "2019-02-05T13:05:23Z")

</div>

Go to admin /customize/permalinks and see that one way to create permalinks is to link to a topic. You can then search for “reverse engineer” or look at the code to see how to create links to a topic. I believe that the vBulletin importer creates permalinks; you might have a look there.

---

<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: [2022 年 2 月 18 日午前 9:37 UTC](https://meta.discourse.org/t/moveing-from-wordpress-to-discourse-301-redirect-problem/108220/5 "2022-02-18T09:37:57Z")

</div>


