This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
51 lines (42 loc) · 1.4 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#magic quotes stuff off
<ifmodule mod_php.c>
php_value magic_quotes 0
php_flag magic_quotes off
php_value magic_quotes_gpc 0
php_flag magic_quotes_gpc off
</ifmodule>
#hide .htaccess files (mostly standard just to be sure)
<files .htaccess>
order allow,deny
deny from all
</files>
#caching für verschiedene Dateitypen aktivieren wenn Modul verfügbar
<ifmodule mod_expires.c>
ExpiresActive On
# Standardcache 1 Stunde
ExpiresDefault "access plus 1 hour"
# Medien sie sich wohl nie aendern 1 Jahr cachen
<FilesMatch "\.(ico|pdf|mp3|oga)$">
ExpiresDefault "access plus 1 year"
</FilesMatch>
# Bilder und Flashzeug 1 Monat cachen
<FilesMatch "\.(gif|jpg|jpeg|png)$">
ExpiresDefault "access plus 1 month"
</FilesMatch>
# Javascript und CSS-Styles 1 Monat cachen
<FilesMatch "\.(js|css)$">
ExpiresDefault "access plus 1 month"
</FilesMatch>
# selten aktualisierte Seiten 2 Stunden cachen
<FilesMatch "\.(xml|txt|html|htm)$">
ExpiresDefault "access plus 2 hours"
</FilesMatch>
# kein cachen dynamischer Seiten
<FilesMatch "\.(php)$">
ExpiresActive Off
</FilesMatch>
</ifmodule>
#Kompression aktivieren wenn Modul verfügbar
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>