-
Notifications
You must be signed in to change notification settings - Fork 4
/
.htaccess
executable file
·419 lines (342 loc) · 15.7 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
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
# Force backslash policy
#RewriteRule ^(.*)([^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]
RedirectMatch 403 ^/config.php$
RedirectMatch 403 ^/account/config.php$
RedirectMatch 403 ^/pages/account/config.php$
RedirectMatch 403 ^/.git/?$
RedirectMatch 403 /\.git
RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]
ErrorDocument 401 /error/400/401.html
ErrorDocument 403 /error/400/403.html
ErrorDocument 404 /error/400/404.html
ErrorDocument 408 /error/400/408.html
ErrorDocument 429 /error/400/429.html
ErrorDocument 500 /error/500/500.html
ErrorDocument 502 /error/500/502.html
ErrorDocument 503 /error/500/503.html
php_value upload_max_filesize 250M
php_value post_max_size 250M
php_value memory_limit 512M
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME}.php !-f
RewriteCond %{HTTP_HOST} fivemods\.net$
RewriteCond %{REQUEST_URI} ^\/legal\/$
RewriteRule .* https://fivemods.org/legal/$1 [NE,R=301,L]
RewriteCond %{REQUEST_URI} ^\/legal\/terms\-of\-service\/$
RewriteRule .* https://fivemods.org/legal/terms-of-service/ [NE,R=301,L]
RewriteCond %{REQUEST_URI} ^\/legal\/privacy\-policy\/$
RewriteRule .* https://fivemods.org/legal/privacy-policy/ [NE,R=301,L]
RewriteCond %{REQUEST_URI} ^\/legal\/legal\-notice\/$
RewriteRule .* https://fivemods.org/legal/impressum/ [NE,R=301,L]
RewriteCond %{REQUEST_URI} ^\/legal\/cookie\-consent\/$
RewriteRule .* https://fivemods.org/legal/cookie-policy/ [NE,R=301,L]
RewriteCond %{REQUEST_URI} ^\/legal\/upload\-policy\/$
RewriteRule .* https://fivemods.org/legal/upload-policy/ [NE,R=301,L]
RewriteCond %{REQUEST_URI} ^\/legal\/account\-policy\/$
RewriteRule .* https://fivemods.org/legal/account-policy/ [NE,R=301,L]
RewriteCond %{REQUEST_URI} ^\/legal\/payment\-agreement\/$
RewriteRule .* https://fivemods.org/legal/payment-agreement/ [NE,R=301,L]
# Account rdc.
RewriteRule ^(account*/)$ ./index.php?page=$1 [L,QSA]
# Account - Edit rdc.
RewriteRule ^(account/edit*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/edit*)$ ./index.php?page=$1 [L,QSA]
# Publish
RewriteRule ^(publish/([a-zA-Z0-9-/]+)/)$ ./publish.php?case=$1 [L,QSA]
RewriteRule ^(publish/([a-zA-Z0-9-/]+))$ ./publish.php?case=$1 [L,QSA]
# Account Product Delete rdc.
RewriteRule ^(account/delete/([a-zA-Z0-9-/]+)/)$ ./account/?delete=$2 [L,QSA]
RewriteRule ^(account/delete/([a-zA-Z0-9-/]+))$ ./account/?delete=$2 [L,QSA]
# Account Logout rdc.
RewriteRule ^(account/logout*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/logout*)$ ./index.php?page=$1 [L,QSA]
# Lock
RewriteRule ^(lock*/)$ ./lock.php [L,QSA]
RewriteRule ^(lock*)$ ./lock.php [L,QSA]
# Account check
RewriteRule ^(account/check*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/check*)$ ./index.php?page=$1 [L,QSA]
# Account 2FA Control
RewriteRule ^(account/factor-control*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/factor-control*)$ ./index.php?page=$1 [L,QSA]
# Account - Sign In / Login rdc.
RewriteRule ^(account/sign-in*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/sign-in*)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/login*/)$ ./account/sign-in/ [L,QSA]
RewriteRule ^(account/login*)$ ./account/sign-in [L,QSA]
RewriteRule ^(sign-in*/)$ ./account/sign-in/ [L,QSA]
RewriteRule ^(sign-in*)$ ./account/sign-in [L,QSA]
RewriteRule ^(login*/)$ ./account/sign-in/ [L,QSA]
RewriteRule ^(login*)$ ./account/sign-in [L,QSA]
# Account - Sign Up / Register rdc.
RewriteRule ^(account/sign-up*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/sign-up*)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/register*/)$ ./account/sign-up/ [L,QSA]
RewriteRule ^(account/register*)$ ./account/sign-up [L,QSA]
RewriteRule ^(sign-up*/)$ ./account/sign-up/ [L,QSA]
RewriteRule ^(sign-up*)$ ./account/sign-up [L,QSA]
RewriteRule ^(register*/)$ ./account/sign-up/ [L,QSA]
RewriteRule ^(register*)$ ./account/sign-up [L,QSA]
# Discord rdc.
RewriteRule ^(discord*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(discord*)$ ./index.php?page=$1 [L,QSA]
# Account - Settings rdc.
RewriteRule ^(account/settings*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/settings*)$ ./index.php?page=$1 [L,QSA]
# Account - Delete rdc.
RewriteRule ^(account/delete*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/delete*)$ ./index.php?page=$1 [L,QSA]
# Account - 2FA rdc.
RewriteRule ^(account/two-factor-authentication*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(account/two-factor-authentication*)$ ./index.php?page=$1 [L,QSA]
# Language rdc.
RewriteRule ^(language*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(language*)$ ./index.php?page=$1 [L,QSA]
# Impressum rdc.
RewriteRule ^(impressum*/)$ /legal/imprint/ [L,QSA]
RewriteRule ^(impressum*)$ /legal/imprint/ [L,QSA]
# About rdc.
RewriteRule ^(about-us*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(about-us*)$ ./index.php?page=$1 [L,QSA]
# Legal rdc.
RewriteRule ^(legal*/)$ ./index.php?page=$1 [L,QSA]
# Legal Privacy rdc.
RewriteRule ^(legal/privacy-policy*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/privacy-policy*)$ ./index.php?page=$1 [L,QSA]
# Legal Imprint rdc.
RewriteRule ^(legal/imprint*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/imprint*)$ ./index.php?page=$1 [L,QSA]
# Legal Payment Agreement rdc.
RewriteRule ^(legal/payment-agreement*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/payment-agreement*)$ ./index.php?page=$1 [L,QSA]
# Legal Upload Policy rdc.
RewriteRule ^(legal/upload-policy*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/upload-policy*)$ ./index.php?page=$1 [L,QSA]
# Legal Account Policy rdc.
RewriteRule ^(legal/account-policy*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/account-policy*)$ ./index.php?page=$1 [L,QSA]
# Legal Legal Notice rdc.
RewriteRule ^(legal/legal-notice*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/legal-notice*)$ ./index.php?page=$1 [L,QSA]
# Legal Cookie Consent rdc.
RewriteRule ^(legal/cookie-consent*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/cookie-consent*)$ ./index.php?page=$1 [L,QSA]
# Legal Terms Of Serivce rdc.
RewriteRule ^(legal/terms-of-service*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(legal/terms-of-service*)$ ./index.php?page=$1 [L,QSA]
# Payment rdc.
RewriteRule ^(payment*/)$ ./index.php?page=$1 [L,QSA]
# Payment Missing Information rdc.
RewriteRule ^(payment/missing-information*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(payment/missing-information*)$ ./index.php?page=$1 [L,QSA]
# Payment Payout rdc.
RewriteRule ^(payment/payout*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(payment/payout*)$ ./index.php?page=$1 [L,QSA]
# Payment Checkout rdc.
RewriteRule ^(payment/checkout*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(payment/checkout*)$ ./index.php?page=$1 [L,QSA]
# Payment Deposit rdc.
RewriteRule ^(payment/deposit*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(payment/deposit*)$ ./index.php?page=$1 [L,QSA]
# Invite rdc.
RewriteRule ^(invite*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(invite*)$ ./index.php?page=$1 [L,QSA]
# Logout rdc.
RewriteRule ^(logout*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(logout*)$ ./index.php?page=$1 [L,QSA]
# Contact rdc.
RewriteRule ^(contact*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(contact*)$ ./index.php?page=$1 [L,QSA]
# Cookie Consent rdc.
RewriteRule ^(cookie-consent*/)$ /legal/cookie-consent/ [L,QSA]
RewriteRule ^(cookie-consent*)$ /legal/cookie-consent/ [L,QSA]
# Famous Creator rdc.
RewriteRule ^(famous-creator*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(famous-creator*)$ ./index.php?page=$1 [L,QSA]
# Help Center rdc.
RewriteRule ^(help-center*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(help-center*)$ ./index.php?page=$1 [L,QSA]
# Payment Agreement rdc.
RewriteRule ^(payment-agreement*/)$ /legal/payment-agreement/ [L,QSA]
RewriteRule ^(payment-agreement*)$ /legal/payment-agreement/ [L,QSA]
RewriteRule ^(payment-policy*/)$ /legal/payment-agreement/ [L,QSA]
RewriteRule ^(payment-policy*)$ /legal/payment-agreement/ [L,QSA]
# Legal Notice rdc.
RewriteRule ^(legal-notice*/)$ /legal/legal-notice/ [L,QSA]
RewriteRule ^(legal-notice*)$ /legal/legal-notice/ [L,QSA]
# Partner Program rdc.
RewriteRule ^(partner-program*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(partner-program*)$ ./index.php?page=$1 [L,QSA]
# Privacy Policy rdc.
RewriteRule ^(privacy-policy*/)$ /legal/privacy-policy/ [L,QSA]
RewriteRule ^(privacy-policy*)$ /legal/privacy-policy/ [L,QSA]
# Upload Policy rdc.
RewriteRule ^(upload-policy*/)$ /legal/upload-policy/ [L,QSA]
RewriteRule ^(upload-policy*)$ /legal/upload-policy/ [L,QSA]
# Account Policy rdc.
RewriteRule ^(account-policy*/)$ /legal/account-policy/ [L,QSA]
RewriteRule ^(account-policy*)$ /legal/account-policy/ [L,QSA]
# Product rdc.
RewriteRule ^(product*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(product*)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(product*/([a-zA-Z0-9-/]+)/)$ ./index.php?page=$1&id=$2 [L,QSA]
RewriteRule ^(product*/([a-zA-Z0-9-/]+))$ ./index.php?page=$1&id=$2 [L,QSA]
# Ref rdc.
RewriteRule ^(ref*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(ref*)$ ./index.php?page=$1 [L,QSA]
# Search rdc.
RewriteRule ^(search*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(search*)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(search*/([a-zA-Z0-9-/]+)/site*/([a-zA-Z0-9-/]+)/)$ ./index.php?page=$1&query=$2&site=$3&submit-search=$4 [L,QSA]
RewriteRule ^(search*/([a-zA-Z0-9-/]+)/site*/([a-zA-Z0-9-/]+))$ ./index.php?page=$1&query=$2&site=$3&submit-search=$4 [L,QSA]
# Status rdc.
RewriteRule ^(status*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(status*)$ ./index.php?page=$1 [L,QSA]
# Terms Of Service rdc.
RewriteRule ^(terms-of-service*/)$ /legal/terms-of-service/ [L,QSA]
RewriteRule ^(terms-of-service*)$ /legal/terms-of-service/ [L,QSA]
# Upload rdc.
RewriteRule ^(upload*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(upload*)$ ./index.php?page=$1 [L,QSA]
# Upload2 rdc.
RewriteRule ^(upload2*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(upload2*)$ ./index.php?page=$1 [L,QSA]
# Affiliate rdc.
RewriteRule ^(affiliate*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(affiliate*)$ ./index.php?page=$1 [L,QSA]
# Advertisement rdc.
RewriteRule ^(advertisement*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(advertisement*)$ ./index.php?page=$1 [L,QSA]
# User rdc.
RewriteRule ^(user*/)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(user*)$ ./index.php?page=$1 [L,QSA]
RewriteRule ^(user*/([a-zA-Z0-9-_/]+)/)$ ./index.php?page=$1&uname=$2 [L,QSA]
RewriteRule ^(user*/([a-zA-Z0-9-_/]+))$ ./index.php?page=$1&uname=$2 [L,QSA]
#Botblocking
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
#Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
#Prevent directory listings
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]
# Deflate Compression by FileType
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-shockwave-flash
</IfModule>
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
<IfModule mod_headers.c>
<FilesMatch "\.(gif|ico|jpeg|jpg|png|css|js)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
</IfModule>
php_flag display_startup_errors off
php_flag display_errors off
Options All -Indexes