summaryrefslogtreecommitdiff
path: root/html/.htaccess
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-17 12:12:22 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-17 12:12:22 +0300
commit68fc9e55e538e03f94509731ab41a0c8cf96710f (patch)
tree3edb1e81864ac3eb35ba0fe8087ed24da1b812bf /html/.htaccess
parent84b2da85a1b452922dadb6a609533b9945afe51d (diff)
downloadclassroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.gz
classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.bz2
classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.zip
setup a real server environment (apache DocumentRoot=/var/www/public)
Diffstat (limited to 'html/.htaccess')
-rw-r--r--html/.htaccess99
1 files changed, 0 insertions, 99 deletions
diff --git a/html/.htaccess b/html/.htaccess
deleted file mode 100644
index f4ddf81..0000000
--- a/html/.htaccess
+++ /dev/null
@@ -1,99 +0,0 @@
-## Introduce the Server
-Header add Origin-Name geone
-
-### Deny access to specific folders
-
- ## deny all files too
- RedirectMatch 403 ^/app/.*$
- RedirectMatch 403 ^/cache/.*$
- RedirectMatch 403 ^/processed-views/.*$
-
- ## deny folders only
- RedirectMatch 403 ^/css/?$
- RedirectMatch 403 ^/js/?$
-
-<IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteBase /
-
- # Remove trailing slash
- RewriteRule ^(.*)/$ /$1 [L,R=301,E=limitcache:1]
- # Header always set Cache-Control "max-age=5400" env=limitcache
-
- # Remove index.php from Application Engine URLs
- # and set 301 Redirects not indefinitely permanent (cache for 1:30h)
- RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
- RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L,QSA,E=limitcache:1]
-
- # Define some cache-control max-age for environment = limitcache
- # but ExpiresDefault on mod_expires will create a duplicate header_-)
- Header always set Cache-Control "max-age=30" env=limitcache
-
- # Direct all non-file/directory web requests through the site index file_\\)
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
-</IfModule>
-
-
-# <FilesMatch "\.(ttf|otf|eot|woff|woff2)$">
-# <IfModule mod_headers.c>
-# Header set Access-Control-Allow-Origin "*"
-# </IfModule>
-# </FilesMatch>
-
-
-### 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
-AddOutputFilterByType DEFLATE application/json
-
-### ### CACHE-CONTROL HEADERS
-###
-### # CACHE-CONTROL IMAGES 100days
-### #: <filesMatch ".(jpg|jpeg|png|gif|ico)$">
-### <filesMatch ".(jpg|jpeg)$">
-### Header set Cache-Control "max-age=8640000, public"
-### </filesMatch>
-###
-### # CACHE-CONTROL CSS and JS 30days
-### #: <filesMatch ".(css|js)$">
-### #: Header set Cache-Control "max-age=2592000, public"
-### #: </filesMatch>
-###
-### ### EXPIRATION DATES
-###
-### # EXPIRATION DATE BY TYPE
-### <IfModule mod_expires.c>
-### ExpiresActive On
-###
-### # Default directive
-### ExpiresDefault "access plus 0 seconds"
-###
-### # My Fav-icon and Images
-### ExpiresByType image/x-icon "access plus 1 month"
-### 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"
-###
-### # CSS
-### #: ExpiresByType text/css "access plus 1 month"
-### # Javascript
-### #: ExpiresByType application/javascript "access plus 1 year"
-### </IfModule>
-###
-###
-### # Remove Server's Signature
-### ServerSignature Off