XF 1.5 URL redirection from the old forum to the new Xenforo



Can someone tell me how to forward the URLs from the old WBB4 to the new XenForo?
I do not want a 404 error and Google punishes me.

The URL looks like this:
Https://grillerforum.de/index.php?thread/2554-bacon-bbq-sub/(old Forum)
Https://grillerforum.de/index.php?threads/bacon-bbq-sub.2371/ (new forum)

The ID's (2554) can be imported as far as I know in the new forum structure at the beginning, so these numbers would be the same.

I tried to edit it with "route filter", but it does not work.
My entries look like this:
Find route: thread / 2554-bacon-bbq-sub /
Replace with: threads / bacon-bbq-sub.2371 /

Unfortunately, an error occurred: Page not found.
What am I doing wrong?

Greetings, Thomas


You can use .htaccess
Redirect 301 /index.php?thread/2554-bacon-bbq-sub/ /index.php?threads/bacon-bbq-sub.2371/

I use this way on my forum and works perfect.

There isn't any easily way,i think this is the only one


Active member
There is an official Google guide on how to use 301 redirects after migration like these. Give it a try.

Jake Bunce

XenForo moderator
Staff member
Add these rules to the top of the .htaccess file in your web root:

RewriteEngine On

RewriteCond %{QUERY_STRING} (^|\?)thread/([0-9]+)-
RewriteRule ^index\.php$ /index.php?threads/%2/? [R=301,L]
This assumes the ids are the same.