[Typo3-dev] Bug in .htaccess?

Martin-no$pam-Kutschker "Martin-no$pam-Kutschker" at blackbox.n0spam.net
Thu Apr 29 16:25:30 CEST 2004


Andreas Schwarzkopf wrote:
> There are IMHO two problems with the official .htaccess file.
> I think it would be the right time to correct all the packages before 
> realeasing them with the new TYPO3 version.
> 
> The current version of .htaccess:
> 
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule   ^typo3$  typo3/index_re.php
> RewriteRule   ^[^/]*\.html$  index.php
> 
> 
> the condition is made for the second rewrite rule but does not affect 
> this - it only can affect the one next rewrite rule

True.

I'm using this in a httpd.conf:

RewriteEngine On
RewriteRule ^typo3$         typo3/index_re.php      [L]
RewriteCond /srv/www/%{REQUEST_FILENAME} !-f
RewriteRule ^/[^/]*\.(html|pdf)$    /index.php      [L]

That is I do the typo3 check first. The other changes are due the fact 
that rewriting in the conf file and a .htacces has to be done 
diferrently. Perhaps not the file makes the difference, but the Apache 
tag. In httpd.conf my rules are within a VirtualHost directive (and not 
a Location).

Masi





More information about the TYPO3-dev mailing list