-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
41 lines (35 loc) · 1.39 KB
/
.htaccess
File metadata and controls
41 lines (35 loc) · 1.39 KB
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
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]
RewriteCond %{HTTP_HOST} !^www.cklockscamarillo.com$ [NC]
RewriteRule ^(.*)$ http://www.cklockscamarillo.com/$1 [L,R=301]
RewriteRule ^index\.php\/?(.*)$ "http\:\/\/www\.cklockscamarillo\.com\/$1" [R=301,L]
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
# HTML
ExpiresByType text/html "access plus 1 month"
#js
ExpiresByType application/javascript "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 month"
# Unset Server Signature header
ServerSignature Off
# Unset Server Technology header
Header unset X-Powered-By
# Set XSS Protection header
Header set X-XSS-Protection "1; mode=block"
</IfModule>
# 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