delfiramirez/web-NastyMondays/master/v03/public/.htaccess - Htaccess File

delfiramirez/web-NastyMondays/master/v03/public/.htaccess

Options All -Indexes

SetEnv TZ Europe/Berlin

SetEnv SERVER_ADMIN 2qt@segonquart.net

<Files .htaccess>
deny from all
</Files>

<FilesMatch ".(ttf|ttc|otf|eot|woff)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
</FilesMatch>

# BEGIN WordPress
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteRule . /index.php [L]
RewriteRule ^(.*)$ index.php [F,L]
# END WordPress

ErrorDocument 404 /404.php

ExpiresActive On
ExpiresDefault "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/pjpeg "access plus 1 week"
ExpiresByType text/javascript "modification plus 1 week"
ExpiresByType application/javascript "modification plus 1 week"
ExpiresByType text/css "modification plus 1 week"

AddType font/ttf .ttf
AddType font/eot .eot
AddType font/otf .otf
AddType font/woff .woff

On Github License

Files

Download PDF of Htaccess file
QUERY_STRING, REQUEST_FILENAME, SERVER_ADMIN, TZ

Comments

Apache