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

vBSEO redirects

i switch from vbulletin 4 + vBSEO to xenForo. Now i want to redirect the old url's in the google index to the new xenForo URL's: http://www.google.de/#sclient=psy-a....,cf.osb&fp=2f285c08b7a2cb86&biw=1680&bih=946

I have used this script http://tools.geekpoint.net/xfseo/ and insert
RewriteEngine on
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
to my .htaccess
but the URL's still not redirect me to the new URL's

Best regards,


Well-known member
The redirects above only redirect from vBSEO pages to the standard non-vBSEO pages. To redirect to the Xenforo page you also need to upload the redirect scripts which replace the showthread.php (etc.) vBulletin files.

Jake Bunce

XenForo moderator
Staff member
Ingenious is correct. Those rewrite rules for vBSEO work in conjunction with these redirect scripts:


You need to upload those redirect scripts. The rewrites forward the old URLs to the redirect scripts which then do the actual redirect. Yes, those vB3 scripts work with vB4.

If you have trouble then I can take a look. Redirects can be a pain as there are several points of failure.
hmm..doesn't work! :(
I have downloaded the "import-301-vbulletin-v6.zip" and uploaded the content in vb to forum root folder.
Then i have edited the 301config.php in forum root. The content:


$fileDir = '/xxx/www/users/xxx/sat-community.de';

define('IMPORT_LOG_TABLE', 'import_log_x');

Jake Bunce

XenForo moderator
Staff member
Is the name of the log table "import_log_x"? The default name is "xf_import_log" or "archived_import_log". Try one of those. Look in the database to confirm the name of the table.
my table was called "xf_import_log"
I have edit the lines in 301config.php but the url's won't still redirect to xenForo url's. :(

Jake Bunce

XenForo moderator
Staff member
Test the scripts by visiting showthread.php?t=123 to see if it redirects to the new thread on your XF forum. Use an old threadid.
my .htaccess:

RewriteEngine on
RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 [NC,L]
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default
<IfModule mod_rewrite.c>
    RewriteEngine On
    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo
    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]

Jake Bunce

XenForo moderator
Staff member
Ok. The redirect scripts are working. Next you need to test a vBSEO URL to see if the rewrite rules are working.

Is it possible to redirect the forum url's from vbseo, too?
It depends on the format of the forum URLs. Can you post an example of one of your vBSEO forum URLs? If it contains the forumid then the redirect should work. If there is no forumid then it won't work.

Threads are the most important thing to redirect.

Jake Bunce

XenForo moderator
Staff member
Yeah those forum URLs won't redirect... unless you setup the redirects manually for each individual forum. For example:

Redirect 301 /board-news/ http://www.sat-community.de/forums/board-news.8/


Active member
Glad I found this thread.

I am was using vbulletin 4 and vbseo,
what code do I put into the htaccess now so XenForo gets that old traffic?