Any .htaccess pros have a moment to help, please?

Discussion in 'Apache' started by gemini181, Dec 9, 2008.

  1. #1
    Hi,

    (((Some SEO mods increase server load quite a bit, so...)))

    Any Apache pros know how to reverse this code? ((Please))
    In the future, I might need to re-direct requests for re-written (html) url's back into dynamic URL's

    # //seo_mod_start
    
    RewriteEngine On
    
    # Uncomment the following and add your forum path if rewrites arent working properly
    
    #RewriteBase /bb/
    
    RewriteRule ^index.html$ index.php [L,NE]
    
    RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
    
    RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
    
    RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
    
    RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
    
    RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 [L]
    
    RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 [L]
    
    # //seo_mod_end
    Code (markup):
    FYI:
    html format:
    /bb/quality-begins-with-value-and-service-t-30.html#pid37

    php format
    /bb/showthread.php?tid=30&pid=37#pid37


    Can anyone help with a .htaccess to reverse requests for URL's created with the lines of code above?
    Thank you
     
    gemini181, Dec 9, 2008 IP