RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.baidu.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} ^item_[a-z0-9\-]+\.baidu\.com$
RewriteRule ^/?$ /%{HTTP_HOST}
RewriteRule ^/item_([a-z0-9\-]+)\.baidu\.com/?$ /arcticle.php?id=$1 [L]
RewriteCond %{HTTP_HOST} ^list_[a-z0-9\-]+\.baidu\.com$
RewriteRule ^/?$ /%{HTTP_HOST}
RewriteRule ^/list_([a-z0-9\-]+)\.baidu\.com/?$ /category.php?id=$1 [L]
RewriteRule ^(.*)index-([0-9]+)?\.html$ $1index.php?page=$2
RewriteRule ^(.*)list-([0-9]+)-([0-9]+)?\.html$ $1category2.php?path=$2&page=$3
RewriteRule ^tag/(.+)$ /tag.php?keywords=$1
RewriteRule ^user/(.+)$ /user.php?keywords=$1
RewriteRule ^img/(.*)$ /go/img.php?uuu=$1