Moveing from wordpress to discourse (301 redirect problem)

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/

The new discourse working url: 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?

Better to create the permalink with the topic id.

Can you please explain this to me.

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.

3 Likes