Bug #19565

Ship optimal TYPO3 configuration by default

Added by Dmitry Dulepov over 6 years ago. Updated about 5 years ago.

Status:Closed Start date:2008-11-04
Priority:Must have Due date:
Assigned To:Christian Kuhn % Done:

0%

Category:- Spent time: -
Target version:-
TYPO3 Version:4.3 Is Regression:
PHP Version:5.2 Sprint Focus:
Complexity:

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)

typo3-tweaks.conf (3.8 kB) Administrator Admin, 2009-01-15 10:31

typo3-rewrite-staticfilecache.conf (2.9 kB) Administrator Admin, 2009-01-15 10:31


Related issues

related to Core - Bug #16971: .htacces in sysext fails in some apache configuration Closed 2007-02-10
related to Core - Bug #19376: Loading the backend takes more than 70 HTTP requests Resolved 2008-09-25
related to Core - Bug #19564: Improve performance of Prototype, Scriptaculous, ExtJS an... Closed 2008-11-04

History

#1 Updated by Michiel Roos over 6 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

:-)

#2 Updated by Michiel Roos over 6 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.

#3 Updated by Dmitry Dulepov over 6 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.

#4 Updated by Henrik Ziegenhain over 5 years ago

I think this issue could be closed.
4.3.x is shipped with the correctly named .htaccess files.

#5 Updated by Christian Kuhn over 5 years ago

Resolved, fixed.

This was committed by Dmitry with revision 5027

Also available in: Atom PDF