Mod Rewrite Friendly URLs Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Asad993
    Member
    • May 2010
    • 47
    • 4.0.0

    Mod Rewrite Friendly URLs Issue

    Hello,

    I was using vBulletin 4.4.2 on Mod Rewrite Friendly URLs with follwing rewrite .htaccess file.

    HTML Code:
    # Author: Matty Asia
    # Version 1.4
    # Downloaded from: http://www.vbulletin.com/forum/showthread.php?325798
    
    RewriteEngine On
    
    ### THIS IS A LITTLE EXTRA SECURITY AND CAN BE REMOVED
    
    RewriteRule ^includes/(.*) index.php
    RewriteRule ^vb/(.*) index.php
    RewriteRule ^packages/(.*) index.php
    
    ### THIS IS THE ACTUAL REWRITE
    
    RewriteRule ^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) showthread.php?t=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^members/([0-9]+) member.php?u=$1&%{QUERY_STRING}
    RewriteRule ^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) forumdisplay.php?f=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) blog.php?u=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?)) entry.php?b=$1&page=$2&%{QUERY_STRING}
    RewriteRule ^list/([^/]*/)([0-9]+) list.php?r=$1$2&%{QUERY_STRING}
    RewriteRule ^content/(.*) content.php?r=$1&%{QUERY_STRING}
    RewriteCond %{HTTP_HOST} ^desilinks\.co$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.desilinks\.co$
    RewriteRule ^/?$ "http\:\/\/desilinks\.co.in" [R=301,L]
    and I've upgraded my forum to vBulletin 5, and the new .htaccess has completely different Rewrite Rule. So all old URLs indexed in search engine are going to old URLs. As there any way to fix this issue ??

    Regards
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    The vB4 urls will be caught and redirected to the new vB5 urls.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...