# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.73
RewriteEngine On
#防盗链
RewriteCond %{HTTP:Host} ^(.+)$
RewriteCond %{HTTP:Referer} ^(?!http://\\1.*).*$
RewriteCond %{HTTP:Referer} ^(?!http://(.*\.google\.com|.*\.baidu\.com|.*\.google\.cn|.*\.xwrblog\.cn).*).*$
RewriteRule ^.*\.(?:gif|jpg|png|exe|rar|zip)$ /logo.png [NC,N,O,I]
#301重定向
RewriteCond %{HTTP:Host} ^360haoso\.com$
RewriteRule (.*) http\://www\.360haoso\.com$1 [NC,R=301]
# 伪静态规则
RewriteRule ^news_([0-9]+)\.html$ /news_detail\.asp\?id=$1 [NC]
RewriteRule ^product_([0-9]+)\.html$ /pro_detail\.asp\?id=$1 [NC]
RewriteRule ^prolista_([0-9]+)\.html$ /product\.asp\?cls=$1 [NC]
RewriteRule ^prolist_([0-9]+)_([0-9]+)\.html$ /product\.asp\?cls=$1&Page=$2 [NC]
RewriteRule ^news_([0-9]+)\.html$ /news\.asp\?Page=$1 [NC]
RewriteRule ^service_([0-9]+)\.html$ /service\.asp\?ID=$1 [NC]