-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
48 lines (38 loc) · 1.48 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
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://samuelgomez.es/$1 [R,L]
# BROWSER CACHING USING EXPIRES HEADERS: Método 1 de 2
<IfModule mod_expires.c>
AddType application/font-woff2 woff2
AddType application/font-woff woff
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
#ExpiresByType text/css "access 7 days"
ExpiresByType text/css "access 1 day"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType text/javascript "access 1 month"
ExpiresByType application/font-woff2 "access plus 1 month"
ExpiresByType application/font-woff "access plus 1 month"
</IfModule>
# BROWSER CACHING USING CACHE-CONTROL HEADERS: Método 2 de 2
<ifModule mod_headers.c>
# One year for image and video files
<filesMatch ".(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp|woff2)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
# One month for JavaScript and PDF files
<filesMatch ".(js|pdf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
# One week for CSS files
<filesMatch ".(css)$">
#Header set Cache-Control "max-age=604800, public"
Header set Cache-Control "max-age=600, public"
</filesMatch>
</ifModule>
# Vídeos
#Ecuación del plano perpendicula a un punto
Redirect 301 /v1 https://youtu.be/3rNMgjDH57Y
ErrorDocument 404 /404.html