reichert1221/FBLA_2013-14/master/.htaccess - Htaccess File

reichert1221/FBLA_2013-14/master/.htaccess

ErrorDocument 401 /Errors/authreq.html
ErrorDocument 403 /Errors/forb.html
ErrorDocument 404 /Errors/notfound.html
ErrorDocument 500 /Errors/servererror.html

Options -Indexes

<Files .htaccess>
order allow,deny
deny from all
</Files>

<Files configuration.php>
order allow,deny
deny from all
</Files>

<Files README.txt>
order allow,deny
deny from all
</Files>

<Files pbkdf3.php>
order allow,deny
deny from all
</Files>

<Files Hash.class.php>
order allow,deny
deny from all
</Files>

<FilesMatch ".(ico|jpg|jpeg|png|gif|js|css|txt)$">
Header set Cache-Control "public"
Header set Expires "Sun, 03 Jun 2014 20:00:00 GMT"
</FilesMatch>

<IfModule mod_expires.c>

# Enable expirations
ExpiresActive On

# Default directive
ExpiresDefault "access plus 1 month"

# My favicon
ExpiresByType image/x-icon "access plus 1 year”

# Images
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"

# CSS
ExpiresByType text/css "access 1 year”

# Javascript
ExpiresByType application/javascript "access plus 1 year"

</IfModule>

RewriteEngine On

RewriteBase /

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

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME

Comments

Apache