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

XF 1.4 vBulletin archive/index.php and tags redirects

Discussion in 'Installation, Upgrade, and Import Support' started by TacticalNuke, Jan 13, 2015.

  1. TacticalNuke

    TacticalNuke Member

    I recently switched to XF and am using the following redirect package:


    Most redirects are working fine. However, there are a few main areas that I'm still trying to figure out how to redirect:

    archive/index.php redirects (archived threads)
    tags.php?tag= (thread tags)

    I've searched here on the forum but haven't found a solution yet. Can anyone assist?

    Thank you.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    For any URLs not covered by the script, or which don't have an equivalent in XenForo, you will have to add manual rewrites to the .htaccess file.
  3. Slavik

    Slavik XenForo Moderator Staff Member

    These should help with your archived threads:

    RewriteRule archive/index\.php/t-([0-9]+)\.html$ http://yoursite.com/threads/$1 [R=301,L]
    RewriteRule archive/index\.php/f-([0-9]+)\.html$ http://yoursite.com/forums/$1 [R=301,L]
  4. TacticalNuke

    TacticalNuke Member

    Thank you very much for the help. The following ended up working for the /t threads:
    RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ http://yoursite.com/index.php?threads/$1/ [R=301,L]
    RewriteRule ^archive/index\.php/t-([0-9]+)\.html$ /index.php?threads/$1/ [R=301,L]
    And this worked for the /f threads:
    RewriteRule ^archive/index\.php/f-([0-9]+)\.html$ http://yoursite.com/forums/$1 [R=301,L]
    RewriteRule ^archive/index\.php/f-([0-9]+)\.html$ /forums/$1 [R=301,L]
    Thanks again. I really appreciate the help.
    Last edited: Jan 15, 2015
  5. popowich

    popowich Active Member

    Any thoughts on rewriting tags/ pages that are failing after migration into search result pages?
  6. XenBurger

    XenBurger Active Member

    Also having this problem. Over 1,000 tags and no matter what rewrite rule we write (tongue twister!), it ignores it.
  7. Mike

    Mike XenForo Developer Staff Member

  8. XenBurger

    XenBurger Active Member

    Thanks! Somehow we got it working in the meantime :)
  9. Derek Zeanah

    Derek Zeanah Member

    If I weren't running on 11 hours of sleep since Friday morning I could do this better, but...

    Is anyone capable of translating this into something that would work with Nginx? I'm pretty sure this is the rule I need to until Google reindexes my site (4 pages reindexed after submitting my sitemap 24 hours ago. Wheee!)
    Last edited: Oct 17, 2016
  10. Derek Zeanah

    Derek Zeanah Member

Share This Page