XF 2.1 Upgrading from 1.5 to 2.x and URL structure

Hi,

I have a forum with millions of posts and I'm looking to upgrade to the latest Xenforo 2.
After copying the live site to a local folder and running the upgrade the old URLs 404 and the structure has changed.

My question is this, is it possible to change the URL routes so be as they were for example:

Old URL: /forums/category-name/forum-name/threads/thread-title.123456/
New URL: /forums/threads/thread-title.123456/

Also:

Old: forums/category-name/general-chat/
New: forums/forums/general-chat.63/

and:

Old: forums/new-users-corner/
New: forums/categories/new-users-corner.54/

I'd really appreciate any feedback you can give as quite keen to upgrade but concerned about the hit we'd take on search engines for so many indexed pages suddenly returning a 404 error!

Thanks in advance.
 
There is no change in the URL structure between XF versions.

It's the same in 2.2 as it was in 1.0.

Categories have never been part of the thread URL so presumably you use an add-on for that.
 
Looks like I'm stuck on Xenforo 1 then which is a pain.
No new add-on that I can find and no reply from the author.

Damn
If you're fine with ditching the old long urls and going with the XF default...

You could use redirect rules in your webserver. with a regex you can find URLs of form

/forums/category-name/forum-name/threads/thread-title.123456/
/forums/(Some letters)/(Some letters)/threads/(Some letters).(Some numbers)/

The bold is a capture group and redirect those to /forums/threads/(captured group)/ using the 301 status code (moved permanently).

This is good for SEO, you can keep it for as long as you think is necessary maybe a couple months then remove it. We need to know what web server you're using and whether or not you have access to editing the website config such as routing.
 
Back
Top Bottom