generator-razor 14.0.50 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/app/index.js +480 -206
  2. package/app/templates/143/db.sql +33 -1
  3. package/app/templates/143/typo3conf/PackageStates.php +3 -0
  4. package/app/templates/143/typo3conf/system/settings.php +3 -7
  5. package/app/templates/143-composer/_.htaccess-dev +691 -0
  6. package/app/templates/143-composer/_.htaccess-dev-ssl +691 -0
  7. package/app/templates/143-composer/composer.json +94 -0
  8. package/app/templates/143-composer/config/system/settings.php +105 -0
  9. package/app/templates/143-composer/db.sql +1688 -0
  10. package/app/templates/143-composer/packages/razorbootstrap/composer.json +39 -0
  11. package/app/templates/143-composer/packages/razorbootstrap/ext_emconf.php +32 -0
  12. package/app/templates/143-composer/packages/razorkickstart/Classes/Command/InstallCommand.php +138 -0
  13. package/app/templates/143-composer/packages/razorkickstart/Classes/Command/PrepareCommand.php +81 -0
  14. package/app/templates/143-composer/packages/razorkickstart/Classes/Command/UpdateTerCommand.php +64 -0
  15. package/app/templates/143-composer/packages/razorkickstart/Configuration/Services.yaml +8 -0
  16. package/app/templates/143-composer/packages/razorkickstart/composer.json +31 -0
  17. package/app/templates/143-composer/public/fileadmin/.htaccess +37 -0
  18. package/app/templates/143-composer/public/fileadmin/_temp_/.htaccess +15 -0
  19. package/app/templates/143-composer/public/fileadmin/_temp_/index.html +7 -0
  20. package/app/templates/143-composer/public/fileadmin/user_upload/.htaccess +33 -0
  21. package/app/templates/143-composer/public/fileadmin/user_upload/_temp_/importexport/.htaccess +15 -0
  22. package/app/templates/143-composer/public/fileadmin/user_upload/_temp_/importexport/index.html +7 -0
  23. package/app/templates/143-composer/public/fileadmin/user_upload/_temp_/index.html +0 -0
  24. package/app/templates/143-composer/public/fileadmin/user_upload/index.html +0 -0
  25. package/package.json +1 -1
@@ -0,0 +1,691 @@
1
+ # ------------------------------------------------------------------------------
2
+ # | Local development (Docker) |
3
+ # ------------------------------------------------------------------------------
4
+
5
+ <FilesMatch \.php$>
6
+ SetHandler proxy:fcgi://php84:9000
7
+ </FilesMatch>
8
+
9
+ # ------------------------------------------------------------------------------
10
+ # | Local development (MAMP) |
11
+ # ------------------------------------------------------------------------------
12
+
13
+ # <IfModule mod_mime.c>
14
+ # RemoveHandler .php
15
+ # RemoveType .php
16
+ # <FilesMatch ".+\.php$">
17
+ # AddHandler php-fastcgi .php
18
+ # </FilesMatch>
19
+ # </IfModule>
20
+
21
+ # ------------------------------------------------------------------------------
22
+ # | TYPO3 application context |
23
+ # ------------------------------------------------------------------------------
24
+
25
+ # SetEnv TYPO3_CONTEXT Development
26
+
27
+ # ------------------------------------------------------------------------------
28
+ # | Maintenance mode |
29
+ # ------------------------------------------------------------------------------
30
+
31
+ # <IfModule mod_rewrite.c>
32
+ # RewriteEngine on
33
+ # RewriteCond %{REMOTE_HOST} !^111\.222\.333\.444
34
+ # RewriteCond %{HTTP:X-FORWARDED-FOR} !^111\.222\.333\.444
35
+ # RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
36
+ # RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
37
+ # # RewriteRule (IP) /x%{HTTP:X-FORWARDED-FOR}x [R,L]
38
+ # RewriteRule .* /maintenance.html [R=302,L]
39
+ # </IfModule>
40
+
41
+ # ------------------------------------------------------------------------------
42
+ # | Browserupdate |
43
+ # ------------------------------------------------------------------------------
44
+
45
+ RewriteCond %{HTTP_USER_AGENT} "Mozilla.*Gecko.*Firefox/([1-9]|[1-2][0-9])[^0-9]" [NC,OR]
46
+ RewriteCond %{HTTP_USER_AGENT} "^Firefox[\/\s]([1-9]|[1-2][0-9])[^0-9]" [NC,OR]
47
+ RewriteCond %{HTTP_USER_AGENT} "AppleWebKit.*Version\/[1-8]\.[0-9\.]*\ Safari" [NC,OR]
48
+ RewriteCond %{HTTP_USER_AGENT} "AppleWebKit.*Version\/[1-8]\.[0-9\.]*\ Mobile\/[A-z0-9]+\ Safari" [NC,OR]
49
+ RewriteCond %{HTTP_USER_AGENT} (MSIE|Trident) [NC]
50
+ RewriteRule .* browser-support.html [L]
51
+
52
+ # ----------------------------------------------------------------------
53
+ # | Keep alive |
54
+ # ----------------------------------------------------------------------
55
+
56
+ <IfModule mod_headers.c>
57
+ Header set Connection keep-alive
58
+ </IfModule>
59
+
60
+ # ----------------------------------------------------------------------
61
+ # | Vary |
62
+ # ----------------------------------------------------------------------
63
+
64
+ <IfModule mod_headers.c>
65
+ <FilesMatch ".(js|css|xml|gz|html)$">
66
+ Header append Vary: Accept-Encoding
67
+ </FilesMatch>
68
+ </IfModule>
69
+
70
+ # ----------------------------------------------------------------------
71
+ # | Enforce trailing slash. Ignore trailing slash on file endings |
72
+ # ----------------------------------------------------------------------
73
+
74
+ # <IfModule mod_rewrite.c>
75
+ # RewriteBase /
76
+ # RewriteCond %{REQUEST_FILENAME} !-f
77
+ # RewriteCond %{REQUEST_FILENAME} !-d
78
+ # RewriteCond %{REQUEST_URI} !(.*)/$
79
+ # RewriteCond %{REQUEST_FILENAME} !\.(gif|jpg|png|jpeg|css|js|xml|rss|json|txt|yaml|yml)$ [NC]
80
+ # RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|jpeg|css|js|xml|rss|json|txt|yaml|yml)$ [NC]
81
+ # RewriteRule ^(.*[^/])$ /$1/ [L,R=301]
82
+ # </IfModule>
83
+
84
+ # ----------------------------------------------------------------------
85
+ # | webp support |
86
+ # ----------------------------------------------------------------------
87
+
88
+ # <IfModule mod_rewrite.c>
89
+ # RewriteEngine On
90
+ # RewriteCond %{HTTP_ACCEPT} image/webp
91
+ # RewriteCond %{DOCUMENT_ROOT}/$1.$3.webp -f
92
+ # RewriteRule ^((fileadmin|other-storage)/.+)\.(png|jpg|jpeg)$ $1.$3.webp [L]
93
+ # </IfModule>
94
+
95
+ # <IfModule mod_headers.c>
96
+ # Header append Vary Accept env=REDIRECT_accept
97
+ # </IfModule>
98
+
99
+ # ----------------------------------------------------------------------
100
+ # | Forcing the `www.` at the beginning of URLs |
101
+ # ----------------------------------------------------------------------
102
+
103
+ # RewriteCond %{HTTP_HOST} ^mywebsite\.com$ [NC]
104
+ # RewriteRule ^(.*)$ http://www\.mywebsite\.com/$1 [R=301,L]
105
+
106
+ # ----------------------------------------------------------------------
107
+ # | No `www.` at the beginning of URLs |
108
+ # ----------------------------------------------------------------------
109
+
110
+ # RewriteCond %{HTTP_HOST} ^www\.subdomain\.mywebsite\.com [NC]
111
+ # RewriteRule ^(.*)$ http://subdomain\.mywebsite\.com/$1 [R=301,L]
112
+
113
+ # ----------------------------------------------------------------------
114
+ # | Forcing `https://` |
115
+ # ----------------------------------------------------------------------
116
+
117
+ # Redirect from the `http://` to the `https://` version of the URL.
118
+ # https://wiki.apache.org/httpd/RewriteHTTPToHTTPS
119
+
120
+ #<IfModule mod_rewrite.c>
121
+ # RewriteEngine On
122
+ # RewriteCond %{HTTPS} !=on
123
+ # RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
124
+ # RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
125
+ #</IfModule>
126
+
127
+ # ----------------------------------------------------------------------
128
+ # | TYPO3 |
129
+ # ----------------------------------------------------------------------
130
+
131
+ #####
132
+ #
133
+ # Example .htaccess file for TYPO3 CMS - for use with Apache Webserver
134
+ #
135
+ # This file includes settings for the following configuration options:
136
+ #
137
+ # - Compression
138
+ # - Caching
139
+ # - MIME types
140
+ # - Cross Origin requests
141
+ # - Rewriting and Access
142
+ # - Miscellaneous
143
+ # - PHP optimisation
144
+ #
145
+ # If you want to use it, you have to copy it to the root folder of your TYPO3 installation (if its
146
+ # not there already) and rename it to '.htaccess'. To make .htaccess files work, you might need to
147
+ # adjust the 'AllowOverride' directive in your Apache configuration file.
148
+ #
149
+ # IMPORTANT: You may need to change this file depending on your TYPO3 installation!
150
+ # Consider adding this file's content to your webserver's configuration directly for speed improvement
151
+ #
152
+ # Lots of the options are taken from https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess
153
+ #
154
+ ####
155
+
156
+
157
+ ### Begin: Compression ###
158
+
159
+ # Optional: enable pre-compressed asset delivery
160
+ AddEncoding gzip .gz
161
+ AddType "text/javascript" .js.gz
162
+ AddType "text/css" .css.gz
163
+ <FilesMatch "\.(js|css)\.gz$">
164
+ ForceType text/plain
165
+ Header set Content-Encoding gzip
166
+ </FilesMatch>
167
+
168
+ <IfModule mod_deflate.c>
169
+ # Force compression for mangled `Accept-Encoding` request headers
170
+ <IfModule mod_setenvif.c>
171
+ <IfModule mod_headers.c>
172
+ SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
173
+ RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
174
+ </IfModule>
175
+ </IfModule>
176
+
177
+ # Compress all output labeled with one of the following media types.
178
+ #
179
+ # (!) For Apache versions below version 2.3.7 you don't need to
180
+ # enable `mod_filter` and can remove the `<IfModule mod_filter.c>`
181
+ # and `</IfModule>` lines as `AddOutputFilterByType` is still in
182
+ # the core directives.
183
+ #
184
+ # https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype
185
+
186
+ <IfModule mod_filter.c>
187
+ AddOutputFilterByType DEFLATE application/atom+xml \
188
+ application/javascript \
189
+ application/json \
190
+ application/ld+json \
191
+ application/manifest+json \
192
+ application/rdf+xml \
193
+ application/rss+xml \
194
+ application/schema+json \
195
+ application/vnd.geo+json \
196
+ application/geo+json \
197
+ application/vnd.ms-fontobject \
198
+ application/x-font-ttf \
199
+ application/x-javascript \
200
+ application/x-web-app-manifest+json \
201
+ application/xhtml+xml \
202
+ application/xml \
203
+ font/eot \
204
+ font/opentype \
205
+ font/otf \
206
+ font/ttf \
207
+ image/bmp \
208
+ image/svg+xml \
209
+ image/vnd.microsoft.icon \
210
+ image/x-icon \
211
+ text/cache-manifest \
212
+ text/css \
213
+ text/html \
214
+ text/javascript \
215
+ text/plain \
216
+ text/vcard \
217
+ text/vnd.rim.location.xloc \
218
+ text/vtt \
219
+ text/x-component \
220
+ text/x-cross-domain-policy \
221
+ text/xml
222
+ </IfModule>
223
+
224
+ <IfModule mod_mime.c>
225
+ AddEncoding gzip svgz
226
+ </IfModule>
227
+ </IfModule>
228
+
229
+ ### End: Compression ###
230
+
231
+
232
+
233
+ ### Begin: Browser caching of resource files ###
234
+
235
+ # This affects Frontend and Backend and increases performance.
236
+ <IfModule mod_expires.c>
237
+
238
+ ExpiresActive On
239
+ ExpiresDefault "access plus 1 month"
240
+
241
+ ExpiresByType text/css "access plus 1 year"
242
+
243
+ ExpiresByType application/json "access plus 0 seconds"
244
+ ExpiresByType application/ld+json "access plus 0 seconds"
245
+ ExpiresByType application/schema+json "access plus 0 seconds"
246
+ ExpiresByType application/vnd.geo+json "access plus 0 seconds"
247
+ ExpiresByType application/geo+json "access plus 0 seconds"
248
+ ExpiresByType application/xml "access plus 0 seconds"
249
+ ExpiresByType text/xml "access plus 0 seconds"
250
+
251
+ ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
252
+ ExpiresByType image/x-icon "access plus 1 week"
253
+
254
+ ExpiresByType text/x-component "access plus 1 month"
255
+
256
+ ExpiresByType text/html "access plus 0 seconds"
257
+
258
+ ExpiresByType application/javascript "access plus 1 year"
259
+ ExpiresByType application/x-javascript "access plus 1 year"
260
+ ExpiresByType text/javascript "access plus 1 year"
261
+
262
+ ExpiresByType application/manifest+json "access plus 1 week"
263
+ ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
264
+ ExpiresByType text/cache-manifest "access plus 0 seconds"
265
+
266
+ ExpiresByType audio/ogg "access plus 1 month"
267
+ ExpiresByType image/apng "access plus 1 month"
268
+ ExpiresByType image/avif "access plus 1 month"
269
+ ExpiresByType image/avif-sequence "access plus 1 month"
270
+ ExpiresByType image/bmp "access plus 1 year"
271
+ ExpiresByType image/gif "access plus 1 year"
272
+ ExpiresByType image/jpeg "access plus 1 year"
273
+ ExpiresByType image/jxl "access plus 1 month"
274
+ ExpiresByType image/png "access plus 1 year"
275
+ ExpiresByType image/svg+xml "access plus 1 month"
276
+ ExpiresByType image/webp "access plus 1 month"
277
+ ExpiresByType video/mp4 "access plus 1 month"
278
+ ExpiresByType video/ogg "access plus 1 month"
279
+ ExpiresByType video/webm "access plus 1 month"
280
+
281
+ ExpiresByType application/atom+xml "access plus 1 hour"
282
+ ExpiresByType application/rdf+xml "access plus 1 hour"
283
+ ExpiresByType application/rss+xml "access plus 1 hour"
284
+
285
+ ExpiresByType font/collection "access plus 1 month"
286
+ ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
287
+ ExpiresByType font/eot "access plus 1 month"
288
+ ExpiresByType font/opentype "access plus 1 month"
289
+ ExpiresByType font/otf "access plus 1 month"
290
+ ExpiresByType application/x-font-ttf "access plus 1 month"
291
+ ExpiresByType font/ttf "access plus 1 month"
292
+ ExpiresByType application/font-woff "access plus 1 month"
293
+ ExpiresByType application/x-font-woff "access plus 1 month"
294
+ ExpiresByType font/woff "access plus 1 month"
295
+ ExpiresByType application/font-woff2 "access plus 1 month"
296
+ ExpiresByType font/woff2 "access plus 1 month"
297
+
298
+ ExpiresByType text/x-cross-domain-policy "access plus 1 week"
299
+
300
+ </IfModule>
301
+
302
+ ### End: Browser caching of resource files ###
303
+
304
+
305
+ ### Begin: MIME types ###
306
+
307
+ # Proper MIME types for all files
308
+ <IfModule mod_mime.c>
309
+ # Security configuration
310
+ RemoveType .html .htm
311
+ <FilesMatch ".+\.html?$">
312
+ AddType text/html .html .htm
313
+ </FilesMatch>
314
+
315
+ RemoveType .svg .svgz
316
+ <FilesMatch ".+\.svgz?$">
317
+ AddType image/svg+xml .svg .svgz
318
+ </FilesMatch>
319
+
320
+ # Data interchange
321
+ AddType application/atom+xml atom
322
+ AddType application/json json map topojson
323
+ AddType application/ld+json jsonld
324
+ AddType application/rss+xml rss
325
+ AddType application/vnd.geo+json geojson
326
+ AddType application/xml rdf xml
327
+
328
+ # JavaScript
329
+ AddType application/javascript js mjs
330
+
331
+ # Manifest files
332
+ AddType application/manifest+json webmanifest
333
+ AddType application/x-web-app-manifest+json webapp
334
+ AddType text/cache-manifest appcache
335
+
336
+ # Media files
337
+
338
+ AddType audio/mp4 f4a f4b m4a
339
+ AddType audio/ogg oga ogg opus
340
+ AddType image/avif avif
341
+ AddType image/avif-sequence avifs
342
+ AddType image/bmp bmp
343
+ AddType image/jxl jxl
344
+ AddType image/webp webp
345
+ AddType video/mp4 f4v f4p m4v mp4
346
+ AddType video/ogg ogv
347
+ AddType video/webm webm
348
+ AddType video/x-flv flv
349
+ AddType image/x-icon cur ico
350
+
351
+ # Web fonts
352
+ AddType font/woff woff
353
+ AddType font/woff2 woff2
354
+ AddType application/vnd.ms-fontobject eot
355
+ AddType font/ttf ttc ttf
356
+ AddType font/otf otf
357
+
358
+ # Other
359
+ AddType application/octet-stream safariextz
360
+ AddType application/x-bb-appworld bbaw
361
+ AddType application/x-chrome-extension crx
362
+ AddType application/x-opera-extension oex
363
+ AddType application/x-xpinstall xpi
364
+ AddType text/vcard vcard vcf
365
+ AddType text/vnd.rim.location.xloc xloc
366
+ AddType text/vtt vtt
367
+ AddType text/x-component htc
368
+
369
+ </IfModule>
370
+
371
+ # UTF-8 encoding
372
+ AddDefaultCharset utf-8
373
+ <IfModule mod_mime.c>
374
+ AddCharset utf-8 .atom .css .js .json .manifest .rdf .rss .vtt .webapp .webmanifest .xml
375
+ </IfModule>
376
+
377
+ ### End: MIME types ###
378
+
379
+
380
+
381
+ ### Begin: Cross Origin ###
382
+
383
+ # Send the CORS header for images when browsers request it.
384
+ <IfModule mod_setenvif.c>
385
+ <IfModule mod_headers.c>
386
+ <FilesMatch "\.(avifs?|bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$">
387
+ SetEnvIf Origin ":" IS_CORS
388
+ Header set Access-Control-Allow-Origin "*" env=IS_CORS
389
+ </FilesMatch>
390
+ </IfModule>
391
+ </IfModule>
392
+
393
+ # Allow cross-origin access to web fonts.
394
+ <IfModule mod_headers.c>
395
+ <FilesMatch "\.(eot|otf|tt[cf]|woff2?)$">
396
+ Header set Access-Control-Allow-Origin "*"
397
+ </FilesMatch>
398
+ </IfModule>
399
+
400
+ ### End: Cross Origin ###
401
+
402
+ ### Begin: StaticFileCache (preparation) ####
403
+
404
+ # Document root configuration
405
+ RewriteRule .* - [E=SFC_ROOT:%{DOCUMENT_ROOT}]
406
+ # RewriteRule .* - [E=SFC_ROOT:%{DOCUMENT_ROOT}/t3site] # Example if your installation is installed in a directory
407
+ # NOTE: There are cases (apache versions and configuration) where DOCUMENT_ROOT do not exists. Please set the SFC_ROOT to the right directory without DOCUMENT_ROOT then!
408
+
409
+ # Cleanup URI
410
+ RewriteCond %{REQUEST_URI} ^.*$
411
+ RewriteRule .* - [E=SFC_URI:/%{REQUEST_URI}]
412
+ RewriteCond %{REQUEST_URI} ^/.*$
413
+ RewriteRule .* - [E=SFC_URI:%{REQUEST_URI}]
414
+ RewriteCond %{REQUEST_URI} ^/?$
415
+ RewriteRule .* - [E=SFC_URI:/]
416
+
417
+ # Cleanup HOST
418
+ RewriteCond %{HTTP_HOST} ^([^:]+)(:[0-9]+)?$
419
+ RewriteRule .* - [E=SFC_HOST:%1]
420
+
421
+ # Disable cache for EXT:solr indexing requests
422
+ RewriteCond %{HTTP:X-Tx-Solr-Iq} .+
423
+ RewriteRule .* - [E=SFC_HOST:invalid-host]
424
+
425
+ # Get scheme
426
+ RewriteRule .* - [E=SFC_PROTOCOL:http]
427
+ RewriteCond %{SERVER_PORT} ^443$ [OR]
428
+ RewriteCond %{HTTP:X-Forwarded-Proto} https
429
+ RewriteRule .* - [E=SFC_PROTOCOL:https]
430
+
431
+ # Get port
432
+ RewriteRule .* - [E=SFC_PORT:80]
433
+ RewriteCond %{ENV:SFC_PROTOCOL} ^https$ [NC]
434
+ RewriteRule .* - [E=SFC_PORT:443]
435
+ RewriteCond %{SERVER_PORT} ^[0-9]+$
436
+ RewriteRule .* - [E=SFC_PORT:%{SERVER_PORT}]
437
+ RewriteCond %{HTTP:X-Forwarded-Port} ^[0-9]+$
438
+ RewriteRule .* - [E=SFC_PORT:%{HTTP:X-Forwarded-Port}]
439
+
440
+ # Full path for redirect
441
+ RewriteRule .* - [E=SFC_FULLPATH:typo3temp/tx_staticfilecache/%{ENV:SFC_PROTOCOL}_%{ENV:SFC_HOST}_%{ENV:SFC_PORT}%{ENV:SFC_URI}/index]
442
+
443
+ # Extension (Order: br, gzip, default)
444
+ RewriteRule .* - [E=SFC_EXT:]
445
+ RewriteCond %{HTTP:Accept-Encoding} br [NC]
446
+ RewriteRule .* - [E=SFC_EXT:.br]
447
+ RewriteCond %{ENV:SFC_ROOT}/%{ENV:SFC_FULLPATH}%{ENV:SFC_EXT} !-f
448
+ RewriteRule .* - [E=SFC_EXT:]
449
+ RewriteCond %{ENV:SFC_EXT} ^$
450
+ RewriteCond %{HTTP:Accept-Encoding} gzip [NC]
451
+ RewriteRule .* - [E=SFC_EXT:.gz]
452
+ RewriteCond %{ENV:SFC_EXT} ^\.gz$
453
+ RewriteCond %{ENV:SFC_ROOT}/%{ENV:SFC_FULLPATH}%{ENV:SFC_EXT} !-f
454
+ RewriteRule .* - [E=SFC_EXT:]
455
+
456
+ # Write Extension to SFC_FULLPATH
457
+ RewriteRule .* - [E=SFC_FULLPATH:%{ENV:SFC_FULLPATH}%{ENV:SFC_EXT}]
458
+
459
+ ### Begin: StaticFileCache (main) ####
460
+
461
+ # We only redirect URI's without query strings
462
+ RewriteCond %{QUERY_STRING} ^$
463
+
464
+ # It only makes sense to do the other checks if a static file actually exists.
465
+ RewriteCond %{ENV:SFC_ROOT}/%{ENV:SFC_FULLPATH} -f
466
+
467
+ # NO frontend or backend user is logged in. Logged in users may see different
468
+ # information than anonymous users. But the anonymous version is cached. So
469
+ # don't show the anonymous version to logged in users.
470
+ RewriteCond %{HTTP_COOKIE} !staticfilecache [NC]
471
+
472
+ # We only redirect GET requests
473
+ RewriteCond %{REQUEST_METHOD} GET
474
+
475
+ # Rewrite the request to the static file.
476
+ RewriteRule .* %{ENV:SFC_ROOT}/%{ENV:SFC_FULLPATH} [L]
477
+
478
+ # Do not allow direct call the cache entries
479
+ RewriteCond %{ENV:SFC_URI} ^/typo3temp/tx_staticfilecache/.*
480
+ RewriteCond %{ENV:REDIRECT_STATUS} ^$
481
+ RewriteRule .* - [F,L]
482
+
483
+ # Handle application cache
484
+ RewriteCond %{REQUEST_FILENAME} !-f
485
+ RewriteCond %{REQUEST_FILENAME} !-d
486
+ RewriteCond %{REQUEST_FILENAME} !-l
487
+ RewriteRule ^.*\.sfc$ %{ENV:CWD}index.php?eID=sfc_manifest [QSA,L]
488
+
489
+ ### Begin: StaticFileCache (options) ####
490
+
491
+ # Set proper content type and encoding for gzipped html.
492
+ <FilesMatch "\.gzip$">
493
+ SetEnv no-gzip 1
494
+ SetEnv no-brotli 1
495
+ <IfModule mod_headers.c>
496
+ Header set Content-Encoding gzip
497
+ </IfModule>
498
+ </FilesMatch>
499
+ <FilesMatch "\.gz$">
500
+ SetEnv no-gzip 1
501
+ SetEnv no-brotli 1
502
+ <IfModule mod_headers.c>
503
+ Header set Content-Encoding gzip
504
+ </IfModule>
505
+ </FilesMatch>
506
+ <FilesMatch "\.br$">
507
+ SetEnv no-gzip 1
508
+ SetEnv no-brotli 1
509
+ <IfModule mod_headers.c>
510
+ Header set Content-Encoding br
511
+ </IfModule>
512
+ </FilesMatch>
513
+
514
+ # if there are same problems with ForceType, please try the AddType alternative
515
+ # Set proper content type gzipped html
516
+ <FilesMatch "\.gzip$">
517
+ ForceType text/html
518
+ # AddType "text/html" .gzip
519
+ </FilesMatch>
520
+ <FilesMatch "\.js\.gzip$">
521
+ ForceType text/javascript
522
+ # AddType "text/javascript" .gzip
523
+ </FilesMatch>
524
+ <FilesMatch "\.css\.gzip$">
525
+ ForceType text/css
526
+ # AddType "text/css" .gzip
527
+ </FilesMatch>
528
+ <FilesMatch "\.xml\.gzip$">
529
+ ForceType text/xml
530
+ # AddType "text/xml" .gzip
531
+ </FilesMatch>
532
+ <FilesMatch "\.rss\.gzip$">
533
+ ForceType text/xml
534
+ # AddType "text/xml" .gzip
535
+ </FilesMatch>
536
+ <FilesMatch "\.gz$">
537
+ ForceType text/html
538
+ # AddType "text/html" .gz
539
+ </FilesMatch>
540
+ <FilesMatch "\.js\.gz$">
541
+ ForceType text/javascript
542
+ # AddType "text/javascript" .gzip
543
+ </FilesMatch>
544
+ <FilesMatch "\.css\.gz$">
545
+ ForceType text/css
546
+ # AddType "text/css" .gzip
547
+ </FilesMatch>
548
+ <FilesMatch "\.xml\.gz$">
549
+ ForceType text/xml
550
+ # AddType "text/xml" .gz
551
+ </FilesMatch>
552
+ <FilesMatch "\.rss\.gz$">
553
+ ForceType text/xml
554
+ # AddType "text/xml" .gz
555
+ </FilesMatch>
556
+ <FilesMatch "\.br$">
557
+ ForceType text/html
558
+ # AddType "text/html" .br
559
+ </FilesMatch>
560
+ <FilesMatch "\.xml\.br$">
561
+ ForceType text/xml
562
+ # AddType "text/xml" .br
563
+ </FilesMatch>
564
+ <FilesMatch "\.rss\.br$">
565
+ ForceType text/xml
566
+ # AddType "text/xml" .br
567
+ </FilesMatch>
568
+
569
+ # Avoid .br files being delivered with Content-Language: br headers
570
+ <IfModule mod_mime.c>
571
+ RemoveLanguage .br
572
+ </IfModule>
573
+
574
+ ### End: StaticFileCache ###
575
+
576
+
577
+ ### Begin: Rewriting and Access ###
578
+
579
+ # You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri).
580
+
581
+ <IfModule mod_rewrite.c>
582
+
583
+ # Enable URL rewriting
584
+ RewriteEngine On
585
+
586
+ # Store the current location in an environment variable CWD to use
587
+ # mod_rewrite in .htaccess files without knowing the RewriteBase
588
+ RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$
589
+ RewriteRule ^.*$ - [E=CWD:%2]
590
+
591
+ # Rules to set ApplicationContext based on hostname
592
+ #RewriteCond %{HTTP_HOST} ^dev\.example\.com$
593
+ #RewriteRule .? - [E=TYPO3_CONTEXT:Development]
594
+ #RewriteCond %{HTTP_HOST} ^staging\.example\.com$
595
+ #RewriteRule .? - [E=TYPO3_CONTEXT:Production/Staging]
596
+ #RewriteCond %{HTTP_HOST} ^www\.example\.com$
597
+ #RewriteRule .? - [E=TYPO3_CONTEXT:Production]
598
+
599
+ # Rule for versioned static files, configured through:
600
+ # - $GLOBALS['TYPO3_CONF_VARS']['BE']['versionNumberInFilename']
601
+ # - $GLOBALS['TYPO3_CONF_VARS']['FE']['versionNumberInFilename']
602
+ # IMPORTANT: This rule has to be the very first RewriteCond in order to work!
603
+ RewriteCond %{REQUEST_FILENAME} !-f
604
+ RewriteCond %{REQUEST_FILENAME} !-d
605
+ RewriteRule ^(.+)\.(\d+)\.(php|js|mjs|css|png|jpg|gif|svg|avif|webp|gz)$ %{ENV:CWD}$1.$3 [L]
606
+
607
+ # Access block for folders
608
+ RewriteRule _(?:recycler|temp)_/ - [F]
609
+ RewriteRule fileadmin/templates/.*\.(?:txt|ts)$ - [F]
610
+ RewriteRule ^(?:vendor|typo3_src|typo3temp/var) - [F]
611
+ RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|ContentBlocks|Resources/Private|Tests?|Documentation|docs?)/ - [F]
612
+
613
+ # Block access to all hidden files and directories with the exception of
614
+ # the visible content from within the `/.well-known/` hidden directory (RFC 5785).
615
+ RewriteCond %{REQUEST_URI} "!(^|/)\.well-known/([^./]+./?)+$" [NC]
616
+ RewriteCond %{SCRIPT_FILENAME} -d [OR]
617
+ RewriteCond %{SCRIPT_FILENAME} -f
618
+ RewriteRule (?:^|/)\. - [F]
619
+
620
+ # Stop rewrite processing, if we are in any known directory
621
+ # NOTE: Add your additional local storages here
622
+ RewriteRule ^(?:fileadmin/|typo3conf/|typo3temp/|_assets/) - [L]
623
+
624
+ # If the file/symlink/directory does not exist but is below /typo3/, redirect to the main TYPO3 entry point.
625
+ RewriteCond %{REQUEST_FILENAME} !-f
626
+ RewriteRule ^typo3/(.*)$ %{ENV:CWD}index.php [QSA,L]
627
+
628
+ # If the file/symlink/directory does not exist => Redirect to index.php.
629
+ # For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
630
+ RewriteCond %{REQUEST_FILENAME} !-f
631
+ RewriteCond %{REQUEST_FILENAME} !-d
632
+ RewriteCond %{REQUEST_FILENAME} !-l
633
+ RewriteRule ^.*$ %{ENV:CWD}index.php [QSA,L]
634
+
635
+ </IfModule>
636
+
637
+ # Access block for files
638
+ # Apache < 2.3
639
+ <IfModule !mod_authz_core.c>
640
+ <FilesMatch "(?i:^\.|^#.*#|^(?:ChangeLog|ToDo|Readme|License)(?:\.md|\.txt)?|^composer\.(?:json|lock)|^ext_conf_template\.txt|^ext_typoscript_constants\.txt|^ext_typoscript_setup\.txt|flexform[^.]*\.xml|locallang[^.]*\.(?:xml|xlf)|\.(?:bak|co?nf|cfg|neon|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql(?:\..*)?|sqlite(?:\..*)?|sw[op]|git.*|rc)|.*~)$"> Order allow,deny
641
+ Deny from all
642
+ Satisfy All
643
+ </FilesMatch>
644
+ </IfModule>
645
+ # Apache ≥ 2.3
646
+ <IfModule mod_authz_core.c>
647
+ <If "%{REQUEST_URI} =~ m#(?i:/\.|/\x23.*\x23|/(?:ChangeLog|ToDo|Readme|License)(?:\.md|\.txt)?|/composer\.(?:json|lock)|/ext_conf_template\.txt|/ext_typoscript_constants\.txt|/ext_typoscript_setup\.txt|flexform[^.]*\.xml|locallang[^.]*\.(?:xml|xlf)|\.(?:bak|co?nf|cfg|neon|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql(?:\..*)?|sqlite(?:\..*)?|sw[op]|git.*|rc)|.*~)$#">
648
+ Require all denied
649
+ </If>
650
+ </IfModule>
651
+
652
+ # Block access to vcs directories
653
+ <IfModule mod_alias.c>
654
+ RedirectMatch 404 /\.(?:git|svn|hg)/
655
+ </IfModule>
656
+
657
+ ### End: Rewriting and Access ###
658
+
659
+
660
+
661
+ ### Begin: Miscellaneous ###
662
+
663
+ # 404 error prevention for non-existing redirected folders
664
+ Options -MultiViews
665
+
666
+ # Make sure that directory listings are disabled.
667
+ <IfModule mod_autoindex.c>
668
+ Options -Indexes
669
+ </IfModule>
670
+
671
+ <IfModule mod_headers.c>
672
+ # Force IE to render pages in the highest available mode
673
+ Header set X-UA-Compatible "IE=edge"
674
+ <FilesMatch "\.(appcache|avifs?|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svgz?|ttf|vcf|webapp|webm|webp|woff2?|xml|xpi)$">
675
+ Header unset X-UA-Compatible
676
+ </FilesMatch>
677
+
678
+ # Reducing MIME type security risks
679
+ Header set X-Content-Type-Options "nosniff"
680
+ </IfModule>
681
+
682
+ # ETag removal
683
+ <IfModule mod_headers.c>
684
+ Header unset ETag
685
+ </IfModule>
686
+ FileETag None
687
+
688
+ ### End: Miscellaneous ###
689
+
690
+
691
+ # Add your own rules here.