diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2026-07-12 15:51:52 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2026-07-12 15:51:52 +0300 |
| commit | 02608271bb2a9f3a65ed536984d306ee14b48e34 (patch) | |
| tree | 3f23ec48a694ec014e845c4f70d9b5f1c065403c /public/.htaccess | |
| download | kalassa-master.tar.gz kalassa-master.tar.bz2 kalassa-master.zip | |
Diffstat (limited to 'public/.htaccess')
| -rw-r--r-- | public/.htaccess | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..1a56113 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,37 @@ +### KALLASSA project +### htaccess v0.1 200311 + + +### Deny access to specific folders + + ## deny all files too + RedirectMatch 403 ^/includes/.*$ + RedirectMatch 403 ^/library/.*$ + + ## deny folders only + RedirectMatch 403 ^/config/?$ + RedirectMatch 403 ^/img/?$ + RedirectMatch 403 ^/css/?$ + RedirectMatch 403 ^/js/?$ + + +### Redirect to HTTPS +# RewriteEngine On +# RewriteCond %{SERVER_PORT} 80 +# RewriteRule ^(.*)$ https://kallassa.roptron.gr/$1 [R,L] + + +### SERVER SIDE OPTIMIZATIONS + +### COMPRESSION + + ## COMPRESS text-anything output + 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 |
