vBSEO redirects

Majora

Member
Hello,
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
Code:
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,
Majora
 
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.
 
Ingenious is correct. Those rewrite rules for vBSEO work in conjunction with these redirect scripts:

http://xenforo.com/community/threads/redirection-scripts-for-vbulletin-3-x.5030/

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:

<?php

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

define('IMPORT_LOG_TABLE', 'import_log_x');
 
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 .htaccess:

Code:
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
#</IfModule>
 
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]
</IfModule>
 
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.
 
Yeah those forum URLs won't redirect... unless you setup the redirects manually for each individual forum. For example:

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