-
Notifications
You must be signed in to change notification settings - Fork 39
/
.htaccess_orig
209 lines (182 loc) · 8.04 KB
/
.htaccess_orig
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
# Use PHP5.4 as default
#AddHandler application/x-httpd-php54 .php
AddHandler cgi-script .pl
Options +ExecCGI
<IfModule mod_mime.c>
AddType image/x-icon .ico
AddType text/html .HTM
AddType application/wasm .wasm
AddType application/json .json
AddType application/manifest+json .webmanifest
AddCharset utf-8 .js
AddCharset utf-8 .webmanifest
</IfModule>
RewriteEngine on
RewriteRule "^(glpx10|glpxm1|glpxm10|googol|googolm|googolm1)\.html$" "$1.pl" [NC,PT]
RewriteEngine on
RewriteRule "^(glpx10|glpxm1|glpxm10|googol|googolm|googolm1)_(\d+)\.html$" "$1.pl?digits=$2" [NC,PT]
RewriteEngine on
RewriteRule "^(glpx10e|glpxm1e|glpxm10e|gugol|gugolm|gugolm1)\.html$" "$1.pl" [NC,PT]
RewriteEngine on
RewriteRule "^(glpx10e|glpxm1e|glpxm10e|gugol|gugolm|gugolm1)_(\d+)\.html$" "$1.pl?digitos=$2" [NC,PT]
# Rules to correctly serve gzip compressed CSS and JS files.
# Requires both mod_rewrite and mod_headers to be enabled.
<IfModule mod_headers.c>
# Serve brotli compressed HTML files if they exist and the client accepts brotli.
RewriteCond %{HTTP:Accept-encoding} br
RewriteCond %{REQUEST_FILENAME}\.br -s
RewriteRule ^(.*)\.HTM $1\.HTM\.br [QSA]
# Serve gzip compressed HTML files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.HTM $1\.HTM\.gz [QSA]
# Serve brotli compressed JS files if they exist and the client accepts brotli.
RewriteCond %{HTTP:Accept-encoding} br
RewriteCond %{REQUEST_FILENAME}\.br -s
RewriteRule ^(.*)\.js $1\.js\.br [QSA]
# Serve gzip compressed JS files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
# Serve brotli compressed webmanifest files if they exist and the client accepts brotli.
RewriteCond %{HTTP:Accept-encoding} br
RewriteCond %{REQUEST_FILENAME}\.br -s
RewriteRule ^(.*)\.webmanifest $1\.webmanifest\.br [QSA]
# Serve gzip compressed webmanifest files if they exist and the client accepts gzip.
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME}\.gz -s
RewriteRule ^(.*)\.webmanifest $1\.webmanifest\.gz [QSA]
# Serve correct content types, and prevent mod_deflate double gzip.
RewriteRule \.HTM\.gz$ - [T=text/html,E=no-gzip:1]
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]
RewriteRule \.webmanifest\.gz$ - [T=application/manifest+json,E=no-gzip:1]
RewriteRule \.HTM\.br$ - [T=text/html,E=no-gzip:1]
RewriteRule \.js\.br$ - [T=text/javascript,E=no-gzip:1]
RewriteRule \.webmanifest\.br$ - [T=application/manifest+json,E=no-gzip:1]
<FilesMatch "(\.js\.gz|\.HTM\.gz|\.webmanifest\.gz)$">
# Serve correct encoding type.
Header set Content-Encoding gzip
# Force proxies to cache gzipped & non-gzipped html/js files separately.
Header append Vary Accept-Encoding
</FilesMatch>
<FilesMatch "(\.js\.br|\.HTM\.br|\.webmanifest\.br)$">
# Serve correct encoding type.
Header set Content-Encoding br
# Force proxies to cache gzipped & non-gzipped html/js files separately.
Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(htm|HTM)$">
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
Header set Content-Type "text/html; charset=UTF-8"
Header set Content-Security-Policy "frame-ancestors 'self'; object-src 'none'"
Header set Referrer-Policy "strict-origin"
Header set Report-To: {"group":"default","max_age":31536000,"endpoints":[{"url":"https://alpertron23.report-uri.com/a/d/g"}],"include_subdomains":true},{"group":"csp-endpoint","max_age":31536000,"endpoints":[{"url":"https://alpertron23.report-uri.com/r/d/csp/enforce"}],"include_subdomains":true}
Header set NEL: {"report_to":"default","max_age":31536000,"include_subdomains":true}
</FilesMatch>
<FilesMatch "(index\.htm)$">
Header set Content-Security-Policy "frame-ancestors 'self'; object-src 'none'"
</FilesMatch>
#Cache timings
<FilesMatch "\.(js|wasm|ico|png|jpeg|webmanifest)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
<FilesMatch "\.(pdf)$">
Header set Cache-Control "public, max-age=31536000"
</FilesMatch>
Header set X-Content-Type-Options "nosniff"
<FilesMatch "\.(HTM)$">
Header set Cache-Control "public, max-age=180"
</FilesMatch>
</IfModule>
#Fix URL errors
ErrorDocument 404 /404.shtml
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L,E=HTTPS:1]
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
RewriteCond %{HTTP_HOST} ^alpertron\.com\.ar$ [NC]
RewriteRule ^.*$ https://www.alpertron.com.ar%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^alpertron\.com$ [NC]
RewriteRule ^.*$ https://www.alpertron.com.ar%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^alpern\.com\.ar$ [NC]
RewriteRule ^.*$ https://www.alpertron.com.ar%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.alpern\.com\.ar$ [NC]
RewriteRule ^.*$ https://www.alpertron.com.ar%{REQUEST_URI} [R=301,L]
#RedirectMatch ^/$ /index.htm
Redirect 301 /intel.htm /INTEL.HTM
Redirect 301 /4004.htm /4004.HTM
Redirect 301 /8008.htm /8008.HTM
Redirect 301 /8080.htm /8080.HTM
Redirect 301 /8085.htm /8085.HTM
Redirect 301 /8087.htm /8087.HTM
Redirect 301 /8088.htm /8088.HTM
Redirect 301 /80186.htm /80186.HTM
Redirect 301 /80187.htm /80187.HTM
Redirect 301 /80286.htm /80286.HTM
Redirect 301 /80287.htm /80287.HTM
Redirect 301 /80386.htm /80386.HTM
Redirect 301 /80387.htm /80387.HTM
Redirect 301 /hw386.htm /HW386.HTM
Redirect 301 /80486.htm /80486.HTM
Redirect 301 /80286.htm /80286.HTM
Redirect 301 /pentium.htm /PENTIUM.HTM
Redirect 301 /ecm.htm /ECM.HTM
Redirect 301 /ECMNEW.HTM /ECM.HTM
Redirect 301 /gausspr.htm /GAUSSPR.HTM
Redirect 301 /prgauss.htm /PRGAUSS.HTM
Redirect 301 /ulam.htm /ULAM.HTM
Redirect 301 /eulam.htm /EULAM.HTM
Redirect 301 /caldoras.htm /CALDORAS.HTM
Redirect 301 /caltors.htm /CALTORS.HTM
Redirect 301 /tnumeros.htm /TNUMEROS.HTM
Redirect 301 /numbert.htm /NUMBERT.HTM
Redirect 301 /quad.htm /QUAD.HTM
Redirect 301 /JQUAD.HTM /QUAD.HTM
Redirect 301 /bigcalc.htm /BIGCALC.HTM
Redirect 301 /english.htm /ENGLISH.HTM
Redirect 301 /INDEX.HTM /index.htm
Redirect 301 /juegos.htm /JUEGOS.HTM
Redirect 301 /games.htm /GAMES.HTM
Redirect 301 /cuad.htm /CUAD.HTM
Redirect 301 /ccalc.htm /CCALC.HTM
Redirect 301 /calc.htm /CALC.HTM
Redirect 301 /logdi.htm /LOGDI.HTM
Redirect 301 /dilog.htm /DILOG.HTM
Redirect 301 /4cuadr.htm /4CUADR.HTM
Redirect 301 /methods.htm /METHODS.HTM
Redirect 301 /intel.pdf /INTEL.PDF
Redirect 301 /gaussian.htm /GAUSSIAN.HTM
Redirect 301 /sumcuad.htm /SUMCUAD.HTM
Redirect 301 /quadmod.htm /QUADMOD.HTM
Redirect 301 /ensam386.htm /ENSAM386.HTM
Redirect 301 /metodos.htm /METODOS.HTM
Redirect 301 /fcubes.htm /FCUBES.HTM
Redirect 301 /assem386.htm /ASSEM386.HTM
Redirect 301 /javaprog.htm /JAVAPROG.HTM
Redirect 301 /polfact.htm /POLFACT.HTM
Redirect 301 /form.htm /FORM.HTM
Redirect 301 /progjava.htm /PROGJAVA.HTM
Redirect 301 /sumpot.htm /SUMPOT.HTM
Redirect 301 /fsquares.htm /FSQUARES.HTM
Redirect 301 /4squares.htm /4SQUARES.HTM
Redirect 301 /contfrac.htm /CONTFRAC.HTM
Redirect 301 /ecmc.htm /ECMC.HTM
Redirect 301 /ECMNUEVO.HTM /ECMC.HTM
Redirect 301 /brilliant.htm /BRILLIANT.HTM
Redirect 301 /ecmrec.htm /ECMREC.HTM
Redirect 301 /inst8088.htm /INST8088.HTM
Redirect 301 /cuadmod.htm /CUADMOD.HTM
Redirect 301 /fermmod.htm /FERMMOD.HTM
Redirect 301 /fraccont.htm /FRACCONT.HTM
Redirect 301 /factpol.htm /FACTPOL.HTM
Redirect 301 /gausiano.htm /GAUSIANO.HTM
Redirect 301 /sumpower.htm /SUMPOWER.HTM
Redirect 301 /rootseq.htm /POLFACT.HTM
Redirect 301 /raicesec.htm /FACTPOL.HTM
Redirect 301 /ROOTSEQ.HTM /POLFACT.HTM
Redirect 301 /RAICESEC.HTM /FACTPOL.HTM