RewriteEngine  on

#ֹ
#RewriteCond %{HTTP_REFERER} !^http://www.phpok.com/.*$ [NC]
#RewriteCond %{HTTP_REFERER} !^http://phpok.com/.*$ [NC]
#RewriteRule .*\.(gif|jpg|psd|bmp|swf|midi|wav|mp3|wma|avi|mpg|wmv|asf|rm|rmvb|zip|rar|flv)$   http://www.phpok.com/logo.png [L]

#ʹUrl rewirte
RewriteBase /

# Rewrite ϵͳ޸
RewriteCond $1 !^(images|js|templates|upfiles|robots\.txt|index\.php|fckeditor\.html)   

# ҳһò
RewriteRule ^index\.html$								index.php [L]

# бҳ
RewriteRule ^cid-([0-9]+)\.html$							index.php?c=list&cid=$1 [L]
RewriteRule ^cid-([0-9]+)-([0-9]+)\.html$						index.php?c=list&cid=$1&pageid=$2 [L]
RewriteRule ^cs-([a-z0-9A-Z]+)\.html$							index.php?c=list&cs=$1 [L]
RewriteRule ^cs-([a-z0-9A-Z]+)-([0-9]+)\.html$						index.php?c=list&cs=$1&pageid=$2 [L]
RewriteRule ^mid-([0-9]+)\.html$							index.php?c=list&mid=$1 [L]
RewriteRule ^mid-([0-9]+)-([0-9]+)\.html$						index.php?c=list&mid=$1&pageid=$2 [L]
RewriteRule ^ms-([a-z0-9A-Z]+)\.html$							index.php?c=list&ms=$1 [L]
RewriteRule ^ms-([a-z0-9A-Z]+)-([0-9]+)\.html$						index.php?c=list&ms=$1&pageid=$2 [L]


# ҳ
RewriteRule ^c([0-9]+)\.html$								index.php?c=msg&id=$1 [L]
RewriteRule ^([a-z0-9A-Z\_\-]+)\.html$								index.php?c=msg&ts=$1 [L]
