RewriteEngine On
#RewriteBase /
RewriteRule ^lightbox.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox.([0-9]+).htm$ lightbox.php?page=$1&%{QUERY_STRING}
 
RewriteRule ^search.htm$ search.php?%{QUERY_STRING}
RewriteRule ^search.([0-9]+).htm$ search.php?page=$1&%{QUERY_STRING}
 
RewriteRule ^cat.html$ categories.php?%{QUERY_STRING}
RewriteRule ^cat([0-9]+).html$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^cat([0-9]+).html$ categories.php?cat_id=$1&%{QUERY_STRING}
 
RewriteRule ^mms-([0-9]+).html$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^mms-([0-9]+).([a-zA-Z0-9]+).html$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}
 
RewriteRule ^postcard([a-zA-Z0-9]+).html$ postcards.php?postcard_id=$1&%{QUERY_STRING}
RewriteRule ^postcard.mms-([0-9]+).html$ postcards.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^sitemap.xml$ sitemap.php  
 
