XF 2.2 Forward previous forum/thread URL to new after updating URL portion of a forum

SFFNetwork

Member
XenForo wisely lets the admin know that if the URL portion of a forum is changed, links to that forum or the threads contained within it will break. But is there an easy way to make this change and then forward URLs using the old name, to the new one?
 
You could set up a route filter or use rewrite rules in .htaccess.

@Brogan Trying to avoid editing the .htaccess actually, but should have thought to use a route filter!

Just to remind myself how to use this... If I have website.com/forum/category/oldcategory/... and I want to update to website.com/forum/category/newcategory/... should it look something like this, to forward future requests of the oldcategory to the newcategory (and any paths below it, e.g. threads)?

Screen Shot 2020-12-22 at 8.47.29 AM.webp
 
Top Bottom