RewriteEngine On
RewriteRule ^(config|data|cache|inc|rewrite|tools)(/|$) - [F,L]
RewriteRule (^|/)\. - [F,L]
RewriteRule ^yanscms/?$ yanscms/index.php [L]
RewriteRule ^yanscms/(.*)$ yanscms/$1 [L]
RewriteRule ^about/?$ about.php [L]
RewriteRule ^contact/?$ contact.php [L]
RewriteRule ^sitemap\.xml$ sitemap.php [L]
RewriteRule ^news/?$ news/index.php [L]
RewriteRule ^news/([0-9]+)\.html$ news/detail.php?id=$1 [L,QSA]
RewriteRule ^product/?$ product/index.php [L]
RewriteRule ^product/([0-9]+)\.html$ product/detail.php?id=$1 [L,QSA]
RewriteRule ^case/?$ case/index.php [L]
RewriteRule ^case/([0-9]+)\.html$ case/detail.php?id=$1 [L,QSA]
RewriteRule ^faq/?$ faq/index.php [L]
RewriteRule ^faq/([0-9]+)\.html$ faq/detail.php?id=$1 [L,QSA]
