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

XF 1.2 vBSEO categories with no ID's redirects

Discussion in 'Installation, Upgrade, and Import Support' started by TheComputerGuy, Jan 6, 2014.

  1. TheComputerGuy

    TheComputerGuy Active Member

    I'm trying to convert one of my largest sites, and I never used ID's in the redirects.

    Is there a less painful way to do the redirects without having to lose that sweet sweet traffic?
     
  2. Mike

    Mike XenForo Developer Staff Member

    If there are no IDs, you basically have to do the redirects manually.
     
  3. Hornstar

    Hornstar Well-Known Member

    I'll be in the same boat. Which ones do you need to manually do and how do you do that?
     
  4. TheComputerGuy

    TheComputerGuy Active Member

    I have over 200 forums/subforums...this doesn't sound good at all.
     
  5. BamaStangGuy

    BamaStangGuy Well-Known Member

    You could write a script to do this. Would require querying the database for the forum id based off forum name.
     
  6. Hornstar

    Hornstar Well-Known Member

    How'd you go?
     
  7. TheComputerGuy

    TheComputerGuy Active Member

    no go so far.

    Might hire someone for this headache.
     
  8. briansol

    briansol Active Member

    Assuming you kept ids intact as part of XF install options, it's pretty easy if you still have the old (vb) database still intact and you have the XF redirector scripts (with the vb names) in place...

    and apache...


    I used this to get my forums in my vbseo format and basically just build a 'rule string' to copy into excel as text and finagle a little bit into a rule set for htaccess (you may have other conditionals for special characters to include or used different replacements, so alter as necessary.) If you used nested like /forum/subforum/ cat urls, this won't work for those

    Code:
    SELECT
     "Redirect 301 "
    , replace(replace(replace(replace(replace(replace(lower(title_clean),"'",""),":",""),"/","")," ","-"),"--","-"),"->","")
    ,"http://yoursite.com/forumdisplay.php?f="
    ,forumid
     FROM forum
    
    Then just kinda take that data dump into a text file and fine tune it a bit.
     
    TheComputerGuy likes this.

Share This Page