RewriteEngine on
RewriteBase /
RewriteRule  ^catalog/(.*)_(.*).htm  catalog\.php\?id=$1&pg=$2
RewriteRule  ^catalog/(.*).htm  catalog\.php\?id=$1
RewriteRule  ^article/(.*).htm  article\.php\?id=$1
RewriteRule  ^tag/(.*) s\.php\?word=$1
RewriteRule  ^tieba/list/(.*).htm  catalog_tieba\.php\?id=$1
RewriteRule  ^tieba/list/(.*)_(.*).htm  catalog_tieba\.php\?id=$1&pn=$2
RewriteRule  ^tieba/view/(.*).htm  article_tieba\.php\?id=$1
