XF 1.2 Help with vbseo to xenforo url, same ids

rainmotorsports

Well-known member
I've searched a bit but with every situation being different. Since the ID's are the same I want to skip the files and or any other go between. Just converting from most vbseo url's directly to xenforo compatible url's in htaccess.

I did attempt to use the http://tools.geekpoint.net/xfseo/ with kier's scripts but its not only the way I don't wish to do it. Really couldn't get it to work. For reference what it did spit out from my XML:
RewriteEngine on
RewriteRule f[\d]+/.+-([\d]+)/index([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule f[\d]+/.+-([\d]+)/ showthread.php?t=$1 [NC,L]
RewriteRule f([\d]+)/index([\d]+).html forumdisplay.php?f=$1&page=$2 [NC,L]
RewriteRule f([\d]+)/ forumdisplay.php?f=$1 [NC,L]

Thread URL:
vbSEO - http://www.tbgclan.com/f22/request-teamspeak-3-pass-provide-age-1868/
Xenforo - http://www.tbgclan.com/threads/request-teamspeak-3-pass-provide-age.1868/

Forum URL:
vbSEO - http://www.tbgclan.com/f10/
Xenforo - http://www.tbgclan.com/forums/general-discussion.10/

Those are the important ones as far as I am concerned. We never used vbseo urls on the members profiles so if someone wanted to help with that one we would be going from http://www.tbgclan.com/member.php?u=735 to http://www.tbgclan.com/members/dirty-lex.735/

The old site is down and I would have trouble pinpointing some of the more specific url's. With vbSEO gone I can't exactly get the license changed to run on the subdomain... eek. Server is actually down at this very moment for a PHP 5.4 upgrade so further attempts at getting more info will take a bit.
 
Put at top of .htaccess file in your web root (which should be XF's .htaccess file):

Code:
RewriteEngine On

RewriteRule ^f[0-9]+/.+-([0-9]+)/$ /threads/$1/ [R=301,L]

RewriteRule ^f([0-9]+)/$ /forums/$1/ [R=301,L]

RewriteCond %{QUERY_STRING} (^|\?)u=([0-9]+)$
RewriteRule ^member\.php$ /members/%2/? [R=301,L]
 
Top Bottom