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

imthebest

Well-known member
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
 
Add these rules to the top of the .htaccess file in your /community directory:

Rich (BB 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).
 
Top Bottom