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

XF 1.2 301 Redirect Help

Discussion in 'Installation, Upgrade, and Import Support' started by BamaStangGuy, Aug 11, 2013.

  1. BamaStangGuy

    BamaStangGuy Well-Known Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Is /forum a directory on the server? If so then add this rule to the .htaccess file inside of the /forum directory:

    Code:
    RewriteEngine On
    
    RewriteRule ^engine-drivetrain/$ /engine-drivetrain.70/ [R=301,L]
    
    Add more instances of the second line for each individual redirect.
     
    BamaStangGuy likes this.
  3. BamaStangGuy

    BamaStangGuy Well-Known Member

    Is there a query I can run to get every forum title slug with the id that exists for the xenForo forum? Then I'd just have to do some appending in notepad++ and a find and replace or two.
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Just look into the xf_forum table.
     
  5. BamaStangGuy

    BamaStangGuy Well-Known Member

    I did, all I see is the node id and no title or slug reference.
     
  6. BamaStangGuy

    BamaStangGuy Well-Known Member

    xf_node seems to be where I want to look
     
  7. BamaStangGuy

    BamaStangGuy Well-Known Member

    Just ran this query:

    Code:
    SELECT CONCAT(  `title` ,  '.',  `node_id` )
    FROM  `xf_node`
    and then exported as text and cleaned it up with Notepad++
     

Share This Page