Assuming the same ids...
Add these rules to the top of the .htaccess file in the /forum directory:
Code:
RewriteEngine On
RewriteRule ^forum/.+/([0-9]+)-([^/]+$|[^/]+/page[0-9]+$) /forums/threads/$1/? [R=301,L]
That should take care of threads.
But there is no forum directory because I have a homepage?
Here's an example of a thread on my site and vbulletin.com (replaced with 'website')
http://www.thexboxcloud.com/threads/we-welcome-all-developers-at-thexboxcloud.1167/#post-1548
http://www.website.com/forum/forum/...bulletin-5-0-4-forum-runner-status-2013-08-13
As you can see I don't have a forum directory on Xenforo and the URL for the forums is /forums (with an 's')
The /forum URL is what I had on vbulletin.
But I didn't have a forum directory on vBulletin or Xenforo because I had a homepage. That was just the URL structure.
I think I kind of worded my first reply wrong. Hopefully this will help with the proper .htaccess code
In the mean time I'll try and understand the code you've provided.
Thanks
edit: I think the only part where I confused you is you thought I had a directory on xenforo or vbulletin so I'm assuming if I take out the '/forums/' part at the end of the code in /forums/threads that it will work. Let me know if I'm right and just have it say /threads/.... etc
Let me know if this is correct for no directory on either vbulletin or xenforo but the /forum/forum url structure on vbulletin and the /threads/...etc on xenforo:
Code:
RewriteEngine On
RewriteRule ^forum/.+/([0-9]+)-([^/]+$|[^/]+/page[0-9]+$) /threads/$1/? [R=301,L]
Second Edit: I think this is correct because both my homepages were for a CMS portal so it had no directory to it. So this should be correct.
There is still a /forum/forum url structure with vbulletin and a /threads/etc.. after the website on Xenforo.