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

vBSEO redirects

Discussion in 'Installation, Upgrade, and Import Support' started by Majora, Feb 19, 2012.

  1. Majora

    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
     
  2. Ingenious

    Ingenious 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.
     
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     
  4. Majora

    Majora Member

    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');
     
  5. Jake Bunce

    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.
     
  6. Ingenious

    Ingenious Well-Known Member

    FYI when I did my conversion and just accepted the default options, the log table was called archived_import_log.
     
  7. Majora

    Majora Member

    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. :(
     
  8. Jake Bunce

    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.
     
  9. Majora

    Majora Member

  10. Majora

    Majora Member

    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>
    
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  12. Majora

    Majora Member

  13. Jake Bunce

    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.

    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.
     
  14. Majora

    Majora Member

  15. Jake Bunce

    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:

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

    Majora Member

    Thank you! ;)
     
  17. audiokid

    audiokid 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?
     
  18. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Every case is a little different. To be certain I need example old and new thread URLs.
     
  19. audiokid

    audiokid Active Member

    Jake, you rock.

    recording.org
    recording.org/forums

    does that work or can I give you my htaccess rewrite
     
  20. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Threads are the important thing to redirect. I need examples of old and new thread URLs (the same thread in both vB and XF).
     

Share This Page