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

XF 1.2 vB4 rewrite rules to xenForo

Discussion in 'Installation, Upgrade, and Import Support' started by Neso, Oct 2, 2013.

  1. Neso

    Neso Member

    Hi, I am finishing transfer from vb4 to xenforo, and last thing is rewrite rules, if somebody can post exact rules that I need to add in htaccess, I have found some topic here related to this, but I do not wish to do something wrong with wrong rewrites.

    Old URLs:
    http://www.site.com/forums/236-satelite-com
    http://www.site.com/forums/458-fatelite-com-Najsave-obavidjesti-prisjedlozi
    http://www.site.com/forums/233-Strad-Filmovi/padge11 (Pagination)

    http://www.site.com/threads/77418-Donsacifje-amp-Donatori
    http://www.site.com/threads/111547-Sfatvenus-E1-Settfings

    http://www.site.com/members/3764-Admini

    I will use xenForo SEO URLs
     
    Last edited: Oct 3, 2013
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Did you maintain IDs?
     
  3. Neso

    Neso Member

    Yes
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Assuming XF is also in the web root... add these rules to the top of the .htaccess file in your web root (XenForo's .htaccess file):

    Code:
        #make exception for XF's URL format
        RewriteRule ^(forums|threads|members)/[^\.]+\.[0-9]+/ - [S=1]
        #redirect vB's URL format
        RewriteRule ^(forums|threads|members)/([0-9]+)-.*$ /$1/$2/? [R=301,L]
    
     
    Neso likes this.
  5. Neso

    Neso Member

    Yes it is in root, thank you it is working :)
     
  6. audiokid

    audiokid Active Member

  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    audiokid likes this.
  8. audiokid

    audiokid Active Member

    Hey thanks Jake!
     

Share This Page