<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.html$ index\.php
RewriteRule ^contact\.html$ contact\.php
RewriteRule ^productlist\.html$ productlist\.php
RewriteRule ^msg\.html$ msg\.php

RewriteRule ^articlelist-([0-9]+)(-([0-9]+))*\.html$ articlelist\.php\?cid=$1&page=$3
RewriteRule ^productlist-([0-9]+)*(-([0-9]+))*\.html$ productlist\.php\?cid=$1&page=$3
RewriteRule ^msg-([0-9]+)*(-([0-9]+))*\.html$ msg\.php\?cid=$1&page=$3
RewriteRule ^page-([0-9]+)(-([0-9]+))*\.html$ page\.php\?cid=$1&page=$3
RewriteRule ^product-([0-9]+)(-([0-9]+))*\.html$ product\.php\?id=$1&page=$3
RewriteRule ^view-([0-9]+)(-([0-9]+))*\.html$ view\.php\?id=$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>