-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
56 lines (46 loc) · 2.2 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
52
53
54
55
56
RewriteEngine on
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
</IfModule>
<IfModule lsapi_module>
</IfModule>
# END cPanel-generated php ini directives, do not edit
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# Cache-Control Headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
# Images
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
# CSS and JavaScript
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
# HTML
ExpiresByType text/html "access plus 1 week"
# Fonts
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
</IfModule>
# Referrer Blocking for Images
RewriteCond %{HTTP_REFERER} !^http://horizonshealthcare.co.ke/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://horizonshealthcare.co.ke$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.horizonshealthcare.co.ke/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.horizonshealthcare.co.ke$ [NC]
RewriteCond %{HTTP_REFERER} !^https://horizonshealthcare.co.ke/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://horizonshealthcare.co.ke$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.horizonshealthcare.co.ke/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.horizonshealthcare.co.ke$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]