# This file is local/.htaccess -- the default distribution contains this
# file to prevent local/ scripts from being accessed directly by browsers
# (this is a potential, albeit very unlikely, security hole).
#
# If you alter or replace this file, it will likely be overwritten when
# you upgrade from one version of PmWiki to another. Be sure to save
# a copy of your alterations in another location so you can restore them,
# and you might try changing this file to be read-only to prevent a PmWiki
# upgrade from overwriting your altered version.
#Order Deny,Allow
#Deny from all
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# The rewrite base will be the document root.
#RewriteBase /
# Send requests without parameters to pmwiki.php.
#RewriteRule ^$ index.php [L]
# Send requests for index.php to pmwiki.php.
#RewriteRule ^index.php$ index.php [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([A-Z0-9xa0-xff].*)$ ?n=$1 [QSA,L]
# Rule for images:
RewriteRule ^(img_)(d+)(.png|.jpg|.gif|.PNG|.JPG|.GIF)$ /img/big/$2$3 [QSA,L]
# Rule for thimbnails:
RewriteRule ^(timg_)(d+)(.png|.jpg|.gif|.PNG|.JPG|.GIF)$ /img/thumbs/$2$3 [QSA,L]