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

XF 1.4 Redirecting specific forumdisplay.php?f=xxx URLs

Discussion in 'Installation, Upgrade, and Import Support' started by imthebest, Sep 1, 2014.

  1. imthebest

    imthebest Formerly Super120

    Hi,

    I recently moved from vBulletin and I'm using the official Redirection Scripts by @Mike to redirect all traffic from vBulletin URLs to the new XenForo URLs. The problem is that these scripts don't redirect forums that are set as categories on vBulletin (see full details here) and now I need some .htaccess redirection rules to redirect specific forumdisplay.php pages like:

    http://www.mysite.com/community/forumdisplay.php?f=xxx
    to
    http://www.mysite.com/community/categories/movies.xxx

    I just need to redirect 8 specific forumdisplay.php?f=xxx URLs, all the other forumdisplay.php URLs should still be managed by the redirection scripts.

    How I can do this?

    Thanks,
    Super120
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Add these rules to the top of the .htaccess file in your /community directory:

    Code:
    RewriteEngine On
    
    RewriteCond %{QUERY_STRING} (^|\?)f=(5|10|12|23)($|&)
    RewriteRule ^forumdisplay\.php$ /community/categories/%2/? [R=301,L]
    
    Enter your list of category ids (pipe delimited list).
     
    imthebest likes this.

Share This Page