From f03fb6f445f2e00a90584ba0f1fb35da7a664450 Mon Sep 17 00:00:00 2001 From: Jan-Paul Kleijn Date: Tue, 29 Sep 2020 13:26:20 +0200 Subject: [PATCH] Add files via upload --- .htaccess | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..b2455dd --- /dev/null +++ b/.htaccess @@ -0,0 +1,67 @@ +## Default .htaccess file +Options -Indexes + + + Header set Connection keep-alive + + + +# enable expirations + ExpiresActive On +# defaults + ExpiresDefault "access plus 1 month" +# media + ExpiresByType image/gif "access plus 1 month" + ExpiresByType image/png "access plus 1 month" + ExpiresByType image/jpg "access plus 1 month" + ExpiresByType image/jpeg "access plus 1 month" + ExpiresByType video/mp4 "access plus 1 month" +# stylesheets +# ExpiresByType text/css "access plus 1 month" +# javascript +# ExpiresByType application/javascript "access plus 1 month" +# pages +# ExpiresByType application/xhtml+xml "access plus 1 week" +# ExpiresByType text/html "access plus 1 week" + + + + # compress text, html, javascript, css, xml: + AddOutputFilterByType DEFLATE text/plain + AddOutputFilterByType DEFLATE text/html + AddOutputFilterByType DEFLATE text/xml + AddOutputFilterByType DEFLATE text/css + AddOutputFilterByType DEFLATE application/xml + AddOutputFilterByType DEFLATE application/xhtml+xml + AddOutputFilterByType DEFLATE application/rss+xml + AddOutputFilterByType DEFLATE application/javascript + AddOutputFilterByType DEFLATE application/x-javascript + AddOutputFilterByType DEFLATE image/x-icon + + + + php_value session.use_trans_sid 0 +# php_flag display_errors on + php_flag magic_quotes_gpc Off + + + + SecFilterEngine Off + SecFilterScanPOST Off + + + + RewriteEngine On + + RewriteCond %{HTTPS} !^on$ + RewriteCond %{HTTP_HOST} ^(.*)$ [NC] + RewriteRule ^.*$ https://%1%{REQUEST_URI} [L,R=301] + + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^api/v1/(.*)$ api/v1/api.php?request=$1 [QSA,NC,L] + + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php?category=$1 [QSA,NC,L] +