forked from forestrf/Descargavideos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
120 lines (74 loc) · 3.23 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
#####################################
# Forzar WWW
#####################################
# convertir ***.com en www.***.com
RewriteCond %{HTTP_HOST} ^descargavideos.tv [NC]
RewriteRule (.*) http://www.descargavideos.tv/$1 [R=301,L]
##############################################################
# PAGINAS DE LA WEB
##############################################################
#rectificar /?pag (indicar cada pag)
#RewriteRule ^([a-zA-Z]+)/?$ index.php?pag=$1 [NC,L]
RewriteRule ^changelog/?$ index.php?pag=changelog&$1 [NC,L]
RewriteRule ^faq/?$ index.php?pag=faq&$1 [NC,L]
RewriteRule ^lab/?$ index.php?pag=lab&$1 [NC,L]
RewriteRule ^contacta/?$ index.php?pag=contacta&$1 [NC,L]
RewriteRule ^agradecimientos/?$ index.php?pag=agradecimientos&$1 [NC,L]
RewriteRule ^aviso_legal/?$ index.php?pag=legal&$1 [NC,L]
RewriteRule ^privacidad/?$ index.php?pag=privacidad&$1 [NC,L]
RewriteRule ^donar/?$ index.php?pag=donar&$1 [NC,L]
##############################################################
# Método de formulario para google
##############################################################
RewriteRule ^web/b64/.*/(.*)$ index.php?web64=$1 [NC,L]
##############################################################
# Métodos de formulario
##############################################################
RewriteRule ^web/form/(.*)$ index.php$1 [NC,L]
RewriteRule ^web/addonf/(.*)$ index.php$1 [NC,L]
RewriteRule ^web/iframeform/(.*)$ index.php$1 [NC,L]
RewriteRule ^web/bookmarklet/(.*)$ index.php$1 [NC,L]
RewriteRule ^web/blog/(.*)$ index.php$1 [NC,L]
RewriteRule ^web/s/(.*)$ index.php$1 [NC,L]
RewriteRule ^web/(.*)$ index.php$1 [NC,L]
##############################################################
# Páginas de las cadenas principales
##############################################################
RewriteRule ^rtve/?$ index.php?$1 [NC,L]
RewriteRule ^univision/?$ index.php?$1 [NC,L]
RewriteRule ^youtube/?$ index.php?$1 [NC,L]
##############################################################
# HACKS
##############################################################
RewriteRule ^util/fla util/fla/descargador_archivos.swf [L]
RewriteRule ^g-search-xml g-search-xml.php [NC,L]
#pasar css a css.php
#RewriteRule ^css/(.*)\.css css/css.php?id=$1 [NC,L]
# Ocultar archivos que comiencen por .
RedirectMatch 404 "(?:.*)/(?:\.git|file_or_dir)(?:/.*)?$"
ErrorDocument 404 /404.php
</IfModule>
# CACHE
<ifModule mod_headers.c>
# 1 AÑO
<FilesMatch "\.(ico|pdf|flv|woff|eot|ttf|svg)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 MES
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
# 1 MES
<FilesMatch "\.(xml|txt|css|js)$">
Header set Cache-Control "max-age=2592000, proxy-revalidate"
</FilesMatch>
</ifModule>
# Compresión
<IfModule mod_filter.c>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
</IfModule>
</IfModule>