Results 1 to 3 of 3

How to redirect vbseo urls to non vbseo urls

This is a discussion on How to redirect vbseo urls to non vbseo urls within the General Discussion forums, part of the vBSEO SEO Plugin category; i have been using vbseo the last year or so and have been very happy with it. I was upgrading ...

  1. #1
    Junior Member Array
    Real Name
    Kevin Muldoon
    Join Date
    Apr 2006
    Posts
    12
    Liked
    0 times

    How to redirect vbseo urls to non vbseo urls

    i have been using vbseo the last year or so and have been very happy with it. I was upgrading to the latest version of vbulletin today so i thought it would be a good time to uninstall vbseo for a few weeks to see if i see a big difference in server load etc

    i will probably add vbseo back again in a couple of weeks but for now my main concern is redirecting vbseo urls to standard vbulletin urls. i dont want this decision to have a huge effect on traffic

    here is the htaccess file i was using

    Code:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vBulletin folder (i.e. RewriteBase /forums)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www.yourdomain.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.*)$ $1 [L]
    
    RewriteCond %{REQUEST_FILENAME}index.php -f
    RewriteRule ^(.*)$ $1index.php [L]
    
    RewriteCond %{QUERY_STRING} !vbseourl=
    RewriteCond %{REQUEST_FILENAME} !chat
    RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    
    RewriteRule ^$ vbseo.php?vbseourl=index.php [L]
    RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
    any help would be appreciated


  2. #2
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Hello,

    please note that it is NOT suggested to change URLs for long periods (like weeks) since that would hurt your search engines indexing.

    In case of default vBSEO URL formats you can use this .htacces to redirect SEOed URLs to original ones (except for forumdisplay URLs which should be redirected manually with one rewrite rule per subforum):
    Code:
    RewriteEngine On
    # thread URLs
    RewriteRule [^/]+/([0-9]+)-[^/]+-([0-9]+)\.html http://www.mysite.com/showthread.php?t=$1&page=$2 [L,R=301]
    RewriteRule [^/]+/([0-9]+)-[^/]+\.html http://www.mysite.com/showthread.php?t=$1 [L,R=301]
    
    # Member List
    RewriteRule ^members/list/index([0-9]+)\.html$ http://www.mysite.com/memberlist.php?page=$1 [L,R=301]
    RewriteRule ^members/list/(\w)([0-9]+)\.html$ http://www.mysite.com/memberlist.php?ltr=$1&page=$2 [L,R=301]
    RewriteRule ^members/list/$ http://www.mysite.com/memberlist.php [L,R=301] 
    
    # Member Profiles
    RewriteRule ^members/.+-([0-9]+)\.html$ http://www.mysite.com/member.php?u=$1 [L,R=301] 
    
    # Attachments
    RewriteRule ^attachments/[^/]+/([0-9]+)-.+$ http://www.mysite.com/attachment.php?attachmentid=$1&%{QUERY_STRING} [L,R=301]
    
    # Showpost
    RewriteRule ^([0-9]+)-post([0-9]+)\.html$ http://www.mysite.com/showpost.php?p=$1&postcount=$2 [L,R=301]
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Junior Member Array
    Real Name
    Kevin Muldoon
    Join Date
    Apr 2006
    Posts
    12
    Liked
    0 times
    i understand that but unfrotunately theres no other way to see the difference in server load apart from uninstalling it

    thanks for your help with this

Similar Threads

  1. vBSEO Optimization Tips
    By Joe Ward in forum General Discussion
    Replies: 90
    Last Post: 10-16-2012, 06:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •