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: '', url: '')

However, unfortunately it doesn’t work.

The 404 old wordpress url:

The new discourse working url:

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.