Stibo/yggdrasil-light/master/yggdrasil/.htaccess - Htaccess File

Stibo/yggdrasil-light/master/yggdrasil/.htaccess

# Login
AuthType Basic
AuthName "Yggdrasil Light Admin"
AuthUserFile /home/stibepr/www/yggdrasil.stibo.ch/yggdrasil/.htpasswd
require user admin

# Disable directory listing
Options -Indexes

# Disable cache
<FilesMatch ".*$">
  Header unset Cache-Control
</FilesMatch>

<IfModule mod_expires.c>
  ExpiresActive off
</IfModule>

<ifModule mod_headers.c>
  Header unset ETag
  Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
  Header set Pragma "no-cache"
  Header set Expires "Wed, 11 Jan 1984 01:00:00 GMT"
</ifModule>

# Rewrite
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ ?pagePath=$1 [L]

On Github License

Files

Download PDF of Htaccess file
no-cache, Pragma, REQUEST_FILENAME

Comments

Apache