<IfModule mod_rewrite.c>
<ifmodule mod_expires.c>
<filesmatch "\.(jpg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)list/([0-9_/]+)(-s-([1-9]))?(-p-([1-9]))?(-([0-9]+))?\.html$ $1list.php?catid=$2&sort=$4&price=$6&page=$8
RewriteRule ^(.*)item/([0-9_/]+)\.html$ $1item.php?id=$2
RewriteRule ^(.*)search/([0-9A-Za-z]+)(-c-([0-9]+))?(-s-([1-9]))?(-([0-9]+))?\.html$ $1search.php?kw=$2&catid=$4&sort=$6&page=$8
RewriteRule ^(.*)shop/([0-9A-Za-z]+)(-c([0-9]+))?(-([0-9]+))?\.html$ $1shop.php?nick=$2&catid=$4&page=$6
RewriteRule ^(.*)photo/([A-Za-z0-9]+)\.jpg$ $1photo.php?u=$2
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</IfModule>
将伪静态规则优化下
怎么就不可以使用了
还请大家帮忙看下
|
|
|
|
|