XF 1.5 Htaccess Redirection of URLs from vBulletin 4x with VBSEO to Xenforo

TFM

New member
I need some help with the redirection of slightly customized VBSEO vBulletin 4x links to Xenforo. Please could someone advise me on what can go in a .htaccess file to accomplish this. Thank you.

My thread IDs, page numbers and post IDs are the same in the old and new forum but the content of the thread title in the URL sometimes differs as VBSEO removes stop words such as: the, in, but, and, on… but the full friendly Xenforo URLs do not. (However, I gather the important bit is the ID numbers and not the content of the titles so hopefully this will not matter).

Also the old URLs are structured so that the threads are located within individually named subforum directories without ID numbers.

I know this will mean the individual forum front pages would require individual rewrites per forum in the .htaccess file but I hope there is at least simpler solution for the bulk redirection of links to individual threads, pages and posts, as I do have the ID numbers for these.

URL examples:

1. Post
old vB URL,
http://www.mydomain.com/forum/subforum-name/792-thread-title-here-page3.html#post4354

new XF URL,
https://www.mydomain.com/community/threads/my-thread-title-is-here.792/page-3#post-4354


2. Post on first page of thread
old vB URL,
http://www.mydomain.com/forum/subforum-name/792-thread-title-here.html#post3333

new XF URL,
https://www.mydomain.com/community/threads/my-thread-title-is-here.792/#post-3333


3. Page
old vB URL,
http://www.mydomain.com/forum/subforum-name/792-thread-title-here-page3.html

new XF URL,
https://www.mydomain.com/community/threads/my-thread-title-is-here.792/page-3


4. Thread
old vB URL,
http://www.mydomain.com/forum/subforum-name/792-thread-title-here.html

new XF URL,
https://www.mydomain.com/community/threads/my-thread-title-is-here.792


5. Forum
old vB URL
http://www.mydomain.com/forum/subforum-name

new XF URL
https://www.mydomain.com/community/forums/my-subforum-name.9/


As shown in the examples above, in changing from the old vBulletin forum to the new Xenforo forum, the directory of where the forum is located has also changed from /forum to /community. There is also a change from http to https.
 
Back
Top Bottom