RewriteEngine On
RewriteRule ^attach/(.*)\.(.*)$ download.php?code=$1&thumbs=0&attach=1
RewriteRule ^thumbs/(.*)\.(.*)$ download.php?code=$1&thumbs=1&attach=0
RewriteRule ^viewimages/(.*)\.(.*)$ download.php?code=$1&thumbs=0&attach=0
RewriteRule ^download/(.*).html$ view.php?code=$1
RewriteRule ^page/(.*).html$ pages.php?name=$1
RewriteRule ^pages/(.*).html$ pages.php?name=$1
RewriteRule ^down/(.*).html$ view.php?code=$1
RewriteRule ^index\.html$ index.php
