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

RewriteEngine On
RewriteBase /
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]

# 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]

