RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f


#重写内容
RewriteRule ^([\w\d\/-]*)/([\w\d-]*)_(\d+)\.html /show.asp\?root=$2&page=$3 [NC,QSA,L]
RewriteRule ^(!lib)([\w\d\/-]*)/([\w\d-]*).html /show.asp\?root=$2 [NC,QSA,L]

#重写列表
RewriteRule ^([\w\d\/-]*)/(\d+)/$ /list.asp\?root=$1&page=$2 [NC,QSA,L]
RewriteRule ^(![admin|user|plug|install|api|theme|lib|upfile])([\w\d\/-]*)/$ /list.asp\?root=$1 [NC,QSA,L]

#重写index.asp
RewriteRule ^index\.html(.*) /index.asp [NC,QSA,L]