1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Help with vbseo to xenforo url, same ids

Discussion in 'Installation, Upgrade, and Import Support' started by rainmotorsports, Jan 3, 2014.

  1. rainmotorsports

    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:
    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.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Put at top of .htaccess file in your web root (which should be XF's .htaccess file):

    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]
    kontrabass and rainmotorsports like this.
  3. rainmotorsports

    rainmotorsports Well-Known Member

    Thank you so much. I just tested it and its perfect for all examples given.

Share This Page