Redirects in Discourse from Xenforo

On my Xenforo board links look like this:

For category:
https://example.com/forums/category.1234/
/forums/category-name.ID/

For post:
https://example.com/threads/thread-name.1234/
/threads/thread-name.ID/

Unfortunately I guess by the amount of / and . redirection does not work after addning it in the discourse panel (/admin/customize/permalinks), is there any way to repair this and create proper redirection?

There is a permalink_normalization site setting to help with that.

2 Likes

Also:

2 Likes

Thanks!

Here’s regex for permalink normalizations for my case on XenForo:

https://example.com/threads/thread-name.1234/
/(threads)\/(.*?)([0-9].*)?$/threads/\3

https://example.com/forums/category.1234/
/(forums)\/(.*?)([0-9].*)?$/forums/\3


When there’s numbers in thread-name or category use this

/(threads)\/(.*?\.)([0-9].*)?$/threads/\3

/(forums)\/(.*?\.)([0-9].*)?$/forums/\3

2 Likes