-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.htaccess
36 lines (32 loc) · 1.27 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
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/x-font-woff .woff
Header set X-Content-Type-Options "nosniff"
Header set X-FRAME-OPTIONS "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
Header set Cache-Control "public, max-age=60"
# Security to css and js files
<FilesMatch "\.(html|htm|js|css|png|jpeg|jpg|gif|pdf|zip)$">
FileETag None
<ifModule mod_headers.c>
Header set Cache-Control "public, max-age=1000"
# Header unset ETag
# Header set Cache-Control "max-age=3600, no-cache, no-store, must-revalidate"
# Header set Pragma "no-cache"
# Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</FilesMatch>
RewriteEngine on
Options All -Indexes
ErrorDocument 403 https://ferobraglobal.com/?subtopic=erro
ErrorDocument 404 https://ferobraglobal.com/?subtopic=erro
ErrorDocument 500 https://ferobraglobal.com/?subtopic=erro
# WC HTTPS Redirect
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^www\.(.*)
#RewriteRule (.*) http://%1/$1 [R=301,L]
RewriteCond $1 !^(index\.php|css|js|assets|img|static|uploads|favicon\.ico)
RewriteRule ^(.*)$ $1 [L]