<IfModule mod_rewrite.c>
RewriteBase /zh_hk/
RewriteEngine On
RewriteRule ^index\.html$ index\.php
RewriteRule ^contact(\/)*$ index\.php\?m=contact
RewriteRule ^productlist(\/)*$ index\.php\?m=productlist
RewriteRule ^msg(\/)*$ index\.php\?m=msg

RewriteRule ^articlelist\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=articlelist&cid=$1&page=$3
RewriteRule ^article\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=article&id=$1&page=$3
RewriteRule ^imglist\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=imglist&cid=$1&page=$3
RewriteRule ^img\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=img&id=$1&page=$3
RewriteRule ^productlist\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=productlist&cid=$1&page=$3
RewriteRule ^product\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=product&id=$1&page=$3
RewriteRule ^page\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=page&cid=$1&page=$3
RewriteRule ^view\/id-([0-9]+)(-([0-9]+))*\.html$ index\.php\?m=article&id=$1&page=$3

RewriteRule ^articlelist\/(.[^\/-]*)(-([0-9]+))*\.html$ index\.php\?m=articlelist&a=$1&page=$3
RewriteRule ^article\/(.[^\/-]*)(-([0-9]+))*\.html$ index\.php\?m=article&a=$1&page=$3
RewriteRule ^imglist\/(.[^\/-]*)(-([0-9]+))*\.html$ index\.php\?m=imglist&a=$1&page=$3
RewriteRule ^img\/(.[^\/-]*)(-([0-9]+))*\.html$ index\.php\?m=img&a=$1&page=$3
RewriteRule ^productlist\/(.[^\/-]*)(-([0-9]+))*\.html$ index\.php\?m=productlist&a=$1&page=$3
RewriteRule ^product\/(.[^\/-]*)(-([0-9]+))*\.html$ index\.php\?m=product&a=$1&page=$3
RewriteRule ^page\/(.[^\/-]*)(\/([0-9]+))*\.html$ index\.php\?m=page&a=$1&page=$3
RewriteRule ^view\/(.[^\/-]*)(-([0-9]+))*\.html$ index\.php\?m=article&a=$1&page=$3


</IfModule>

<IfModule mod_headers.c>
<FilesMatch "\.(jpg|jpeg|png|gif|swf|xml|txt|css|js)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
</IfModule>

<IfModule mod_expires.c>
<FilesMatch "\.(jpg|jpeg|png|gif|swf|xml|txt|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 weeks"
</FilesMatch>
</IfModule>