Skip to content

Commit

Permalink
[TASK] Improve indentation of .htaccess code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkraume committed Feb 21, 2020
1 parent 1ad4a69 commit f75322c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Documentation/Configuration/Htaccess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This is the base .htaccess configuration. Please take a look for the default var
RewriteCond %{HTTP:X-Forwarded-Port} ^[0-9]+$
RewriteRule .* - [E=SFC_PORT:%{HTTP:X-Forwarded-Port}]
# Full path for redirect
# Full path for redirect
RewriteRule .* - [E=SFC_FULLPATH:typo3temp/tx_staticfilecache/%{ENV:SFC_PROTOCOL}_%{ENV:SFC_HOST}_%{ENV:SFC_PORT}%{ENV:SFC_URI}/index]
# Extension (Order: br, gzip, default)
Expand Down Expand Up @@ -95,13 +95,13 @@ This is the base .htaccess configuration. Please take a look for the default var
### Begin: StaticFileCache (options) ####
# Set proper content type and encoding for gzipped html.
<FilesMatch "\.gzip$">
SetEnv no-gzip 1
SetEnv no-brotli 1
<IfModule mod_headers.c>
Header set Content-Encoding gzip
</IfModule>
</FilesMatch>
<FilesMatch "\.gzip$">
SetEnv no-gzip 1
SetEnv no-brotli 1
<IfModule mod_headers.c>
Header set Content-Encoding gzip
</IfModule>
</FilesMatch>
<FilesMatch "\.gz$">
SetEnv no-gzip 1
SetEnv no-brotli 1
Expand All @@ -119,7 +119,7 @@ This is the base .htaccess configuration. Please take a look for the default var
# if there are same problems with ForceType, please try the AddType alternative
# Set proper content type gzipped html
<FilesMatch "\.gzip$">
<FilesMatch "\.gzip$">
ForceType text/html
# AddType "text/html" .gzip
</FilesMatch>
Expand Down Expand Up @@ -189,4 +189,4 @@ There might be some files you never want to pull from cache even if they are ind
Keep in mind: If you are using the gzip feature of StaticFileCache you have to take care, that the output is not encoded twice. If the result of the page are cryptic chars like "�‹��í[krÛH’þ-Eô�ª¹±-¹[ À—�É${dùÙkÙ�[îé..." remove the "text/html \" in the mod_deflate section of the default TYPO3 .htaccess rules.

Troubleshooting: It is also necessary that the autogenerated .htaccess files in the StaticFileCache directory (by default *typo3temp/tx_staticfilecache*) will be not ignored by the server. Sometimes in the vHost configuration various directories could be marked to deny an overwrite by an additional .htaccess file for performance reasons.
Troubleshooting: It is also necessary that the autogenerated .htaccess files in the StaticFileCache directory (by default *typo3temp/tx_staticfilecache*) will be not ignored by the server. Sometimes in the vHost configuration various directories could be marked to deny an overwrite by an additional .htaccess file for performance reasons.

0 comments on commit f75322c

Please sign in to comment.