All pastes #506724 Raw Edit

TJ

public text v1 · immutable
·published 2007-05-24 04:29 UTC
rendered paste body
<IfModule mod_rewrite.c>
  RewriteEngine On

  #### !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
  RewriteBase /zenphoto
  ####

  RewriteRule	^admin/?$                       zen/admin.php [R,L]

  RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
  RewriteCond %{REQUEST_FILENAME} -d [NC]
  RewriteRule ^.*$ - [R,L]

  RewriteRule ^index\.php$                    index.php [L,QSA]
  RewriteRule ^page/([0-9]+)/?$               index.php?page=$1 [L,QSA]
  RewriteRule ^page/([A-Za-z0-9\-_]+)/?$      index.php?p=$1 [L,QSA]
  RewriteRule ^(.*)/page/([0-9]+)/?$          index.php?album=$1&page=$2 [L,QSA]
  RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\\]+)$    zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
  RewriteRule ^(.*)/image/([^/\\]+)$          zen/i.php?a=$1&i=$2 [L,QSA]

  # Catch-all - everything else gets handled in PHP for compatibility.
  RewriteRule ^(.*)/?$                        index.php?album=$1 [L,QSA]
</IfModule>