Bug #19565
closedShip optimal TYPO3 configuration by default
0%
Description
By default TYPO3 comes with unoptimal configuration due to the bugfix #16971. It is time to change it to optimal. If some installation disable mod_rewrite, it is not a reason to ship badly optimized installation to the rest of the world.
To make optimal configuration, rename the following files from _.htaccess to .htaccess in the TYPO3 core:
./typo3/contrib/_.htaccess
./typo3/gfx/_.htaccess
./typo3/mod/user/ws/_.htaccess
./typo3/sysext/_.htaccess
./typo3/sysext/t3skin/stylesheets/_.htaccess
(issue imported from #M9729)
Files
Updated by Michiel Roos almost 16 years ago
Inform users of TYPO3! . .
http://httpd.apache.org/docs/2.2/howto/htaccess.html#when
. . . that reading of .htaccess files is slow. Apache needs to traverse the complete file tree from the request path up to the web root to see if there are any .htaccess files present. If there are it needs to read all of them.
You can disable .htaccess files in Apache config:
AllowOverride None
Please find my configs for inclusion in my vhosts attached.
There is one for replacement of the .htaccess files and one for rewrite rules.
All the configs are wrapped in <IfModule>.
Just my 2 cents
:-)
Updated by Michiel Roos almost 16 years ago
Just remember that mnogosearch may expect certain things set up a bit differently from this config.
I cannot remember what though.
Also, the static file cache config can be taken out of the rewrite file.
Updated by Dmitry Dulepov almost 16 years ago
<q>
that reading of .htaccess files is slow. Apache needs to traverse the complete file tree from the request path up to the web root to see if there are any .htaccess files present. If there are it needs to read all of them.
</q>
Did you make measures? These files will be in the file system cache, so they will not be read every time. Even if they were, network delays are much longer than file reading.
Updated by Henrik Ziegenhain over 14 years ago
I think this issue could be closed.
4.3.x is shipped with the correctly named .htaccess files.
Updated by Christian Kuhn over 14 years ago
Resolved, fixed.
This was committed by Dmitry with revision 5027