XF 1.1 301 Redirects from vb4/forum to xf/community


Well-known member
I'm planning to migrate vb4 to XF this weekend and was hoping to also change the URL from /forum to /community.

Is it possible to set up 301 redirects for each visitor landing on /forum to the corresponding /community page? I'm not too keen on losing the 10,000 inbound links to the forum...

I'm running nginx proxying to Apache just to complicate things, so while the preference would be an nginx redirect, .htaccess will also work.

Looking at the URLs from both systems, there could be some fancy regex involved..

from http://www.greenandgoldrugby.com/forum/index.php
to http://www.greenandgoldrugby.com/community/

from http://www.greenandgoldrugby.com/forum/forums/101-Club-Rugby
to http://www.greenandgoldrugby.com/community/forums/club-rugby.101/

from http://www.greenandgoldrugby.com/forum/threads/9568-Shute-Shield-2012/page7
to http://www.greenandgoldrugby.com/community/threads/shute-shield-2012.9568/page-8

Jake Bunce

XenForo moderator
Staff member
What format of vB4 URLs are you using?

Admin CP -> Settings -> Options -> Friendly URLs -> URL Type

Screen shot 2011-12-13 at 11.24.44 PM.png

Here is a vB4 redirect package:


The above package has redirects for standard/basic/advanced URLs as well as mod_rewrite URLs. The mod_rewrite redirects use an addon. That thread also has rewrites for Apache and Nginx to change directories like you want.

Let me know if you have trouble with this. I have setup these redirects before.