# enable mod_rewrite RewriteEngine On # your path here!!111 :] RewriteBase / # allow thumbnails (with default value) for mime-type # use static and remove MenuName to make it more lightweight AddThumbByType dynamic image/* # and some more examples... #AddThumbByType static image/jpg #AddThumbByType none image/png # menu and autoindex formatting (override/remove ,,previews'' here) MenuName /.index/menu.html IndexOptions +AlwaysEmitH1 # make it look good IndexStyleSheet /.index/style.css IndexOptions +HTMLTable # display thumbnail RewriteCond %{QUERY_STRING} thumb$ RewriteRule ^(.*)? /.index/thumb.php?t=%{REQUEST_FILENAME} [NS,L] # menu functionality (thumbnail mode) RewriteCond %{QUERY_STRING} __thumb.static$ RewriteRule ^(.*)$ $1? [CO=THUMB:static:.netvor.sk:525600,R] RewriteCond %{QUERY_STRING} __thumb.dynamic$ RewriteRule ^(.*)$ $1? [CO=THUMB:dynamic:.netvor.sk:525600,R] RewriteCond %{QUERY_STRING} __thumb.none$ RewriteRule ^(.*)$ $1? [CO=THUMB:none:.netvor.sk:525600,R]