Bug #20434
Improve advanced_htaccess and make it more compatible
Status: | Closed | Start date: | 2009-05-16 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Ernesto Baschny | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 4.3 | Is Regression: | ||
PHP Version: | 5.2 | Sprint Focus: | ||
Complexity: |
Description
Resource files like CSS, JS, images, etc. cannot be loaded correctly due to missing configuration concerning .htaccess files. For example XAMPP comes with a default setup that does not allow to override settings in .htaccess files in the TYPO3 Core.
Any request to a file that has an expire information set by .htaccess results in a "500 Internal Server Error".
Also the texts in the advanced_htaccess file are partly outdated and need an update.
(issue imported from #M11103)
Related issues
History
#1 Updated by Michiel Roos about 5 years ago
Can you please post exact steps to reproduce for a xamp setup?
#2 Updated by Steffen Gebert about 5 years ago
How can it fail with <IfModule mod_expires.c>? Or are there .htaccess somewhere, which have Expires commands not wrapped it IfModule?
#3 Updated by Chris topher over 4 years ago
I just checked all .htaccess files in the Core: There is none which uses expires commands outside of <IfModule mod_expires.c>.
I also use XAMPP and mod_expires is deactivated. I never had the problem Olly reports here.
The same was a problem if rewrite commands were not put inside <IfModule mod_rewrite.c>...</IfModule>. This was the case and has been fixed in #23799.
#4 Updated by Chris topher over 4 years ago
You could however create this kind of problem, if you activated the lines beginning with "mod_gzip_item_exclude...." which you find at the end of misc/advanced_htaccess. If you use this on Apache2.x, where mod_gzip was replaced by mod_deflate, you get a Server Error 500.
But these lines are
- deactivated by default and
- activating them on newer servers would be a configuration error.
However they are still kind of recommended as they are part of the Core.
So there are two things we should do:
- We should add a section with the lines needed for mod_deflate.
- AND put the lines on compression inside <IfModule mod_gzip.c>...</IfModule> and <IfModule mod_deflate.c>...</IfModule> respectivelly.
#5 Updated by Steffen Gebert over 4 years ago
Christopher, could you provide a patch for this, please?
#6 Updated by Chris topher over 4 years ago
Yes, the patch is attached and pending in Core List.
#7 Updated by Ernesto Baschny over 4 years ago
Committed v3 to trunk rev. 9445.
#8 Updated by Susanne Moog over 4 years ago
- Target version deleted (
4.5.0)