长尾产品的一个优化正正 不指定

Else , 2010/07/13 17:46 , 积累些,自己也写些 , Comments(0) , Reads(583) , Via Original

    #products
        RewriteRule ^products/([0-9]+)\.htm$ products.php\?&page=$1
        RewriteRule ^products/([0-9]+)-([0-9]+)\.htm$ products.php\?id=$1\&page=$2
        RewriteRule ^products/([a-zA-Z+|\_|\-]+)([0-9]+)-([0-9]+)\.htm$ products.php\?linkname=$1\&id=$2\&page=$3
        RewriteRule ^products/([a-zA-Z+|\_|\-]+)-([0-9]+)\.htm$ products.php\?linkname=$1\&page=$2
        RewriteRule ^product/([a-zA-Z|\-|\_]+|)([0-9]+)\.htm$ product.php?id=$2


数字,或是字母,或是混合!
Tags:
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]