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

XF 1.1 xenforo with ipb and vBulletin redirects

Adam Howard

Well-known member
#1
So I've come over a new setup

XenForo fully established, importing both IPB and vBulletin

Needs to keep current and future xenforo links, but also preserve past IPB and vBulletin links.

How would one apply that?
 

Adam Howard

Well-known member
#4
You can use these scripts for vB:

http://xenforo.com/community/resources/redirection-scripts-for-vbulletin-3-x.264/

You just need to edit the two 301config.php files for both sets of redirects to point to the different import log tables (assuming you saved both of them).
I personally didn't do this import. Someone else did and no, they dumped the import logs :rolleyes: :eek:

So I'm trying to find a generic way to do the redirect via htaccess. I'm sure it will not be 100%, but better than nothing.
 

Jake Bunce

XenForo moderator
Staff member
#5

Adam Howard

Well-known member
#7
PHP:
    RewriteCond %{QUERY_STRING} (^|\?)([0-9]+)-([a-zA-Z0-9_\-]+)
    RewriteRule showthread\.php /forum/showthread.php?t=%2 [R=301,L]
May simply be the best option for the vBulletin side of things.
 

Jake Bunce

XenForo moderator
Staff member
#10
The import log is required for redirects if the ids are different. If the ids are the same then you can use plain rewrite rules without an import log.