# htaccess file version 1.4.5;
#	Rewrite rules are now handled by PHP code
# See the file "zenphoto-rewrite.txt" for the actual rules
# 
# These rules redirect everything not directly accessing a file to the Zenphoto index.php script
#
<IfModule mod_autoindex.c>
	IndexIgnore *
</IfModule>
<IfModule mod_rewrite.c>
  RewriteEngine On
  
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [L]

  RewriteRule ^.*/?$                        index.php [L,QSA]
  
</IfModule>

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^\/\.well-known\/.*$
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
