ametheus/cm-ldb/master/.htaccess - Htaccess File

ametheus/cm-ldb/master/.htaccess

AuthType basic
AuthName "Ledendatabase Collegium Musicum"
AuthUserFile /etc/apache2/ledendatabase.htpasswd

RewriteEngine On

RewriteRule ^query/(.*)$            exec-query.php?query=$1                    [QSA]

RewriteRule ^login$                 login.php
RewriteRule ^logout$                login.php

RewriteRule ^bewerken$              edit-people.php
RewriteRule ^bewerken/json/(.*)$    edit-people.php?json=$1                    [QSA]

RewriteRule ^css/humanity.css$      css/humanity/jquery-ui-1.8.12.custom.css
RewriteRule ^js/jquery.js$          js/jquery-1.5.1.min.js
RewriteRule ^js/jquery-ui.js$       js/jquery-ui-1.8.12.custom.min.js

RewriteRule ^js/admina.js$          cat.php                                    [L]
RewriteRule ^css/admina.css$        cat.php                                    [L]
RewriteRule ^js/bewerken.js$        cat.php                                    [L]

RewriteRule ^favicon.ico$           img/favicon.ico

RewriteRule ^aanmelden$             http://www.collegiummusicum.nl/w/lid-worden/  [R=301]

php_value session.gc_maxlifetime    86400
php_value session.cookie_lifetime   86400

# Deny include files
RewriteRule ^inc/(.*)$ index.php [F]
RewriteRule ^create_db.sh$ index.php [F]

# Error handlers
ErrorDocument 401 /error/auth.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/notfound.html
ErrorDocument 500 /error/internal.html

# Test errors
RewriteRule ^test-error/401$ login.php [L]
RewriteRule ^test-error/403$ / [F,L]
RewriteRule ^test-error/404$ - [L]
RewriteRule ^test-error/500$ error/exception.php

On Github License

Files

Download PDF of Htaccess file

Comments

Apache