<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$">
    order deny,allow
    deny from all
</FilesMatch>

RewriteEngine On
RewriteBase /canting/
rewritecond %{request_filename} !-f
# direct one-word access
RewriteRule ^index\.html$    index\.php [L]
RewriteRule ^photo\.html$ photo.php  [L]
RewriteRule ^room\.html$ room.php [L]
RewriteRule ^cai_cat\.html$ cai_cat.php [L]
RewriteRule ^cook_list\.html$ cook.php?act=list [L]
RewriteRule ^vote_cat.html$ vote.php?act=cat [L]
RewriteRule ^art_cat.html$  art_cat.php [L]
RewriteRule ^cailist.html$  cailist.php [L]
# access any object by its numeric identifier
RewriteRule	^art-([0-9]+)\.html$    art.php?id=$1 [t]
RewriteRule ^art_cat-([0-9]+)\.html$  art_cat.php?catid=$1 [t]
RewriteRule ^cai-([0-9]+)\.html$  cai.php?id=$1 [t]
RewriteRule ^cai_cat-([0-9]+)\.html$ cai_cat.php?catid=$1 [t]
RewriteRule ^pic-([0-9]+)\.html$ photo.php?act=pic&pid=$1 [t]
RewriteRule ^html_cat-([0-9]+)\.html$ html.php?catid=$1 [t]
RewriteRule ^html-([0-9]+)\.html$ html.php?id=$1 [t]
RewriteRule ^room-([0-9]+)\.html$ room.php?act=detail&id=$1 [t]
RewriteRule ^cook-([0-9]+)\.html$ cook.php?cookid=$1 [t]
RewriteRule ^vote-([0-9]+)\.html$ vote.php?vid=$1 [t]


