[Typo3-dev] Bug in .htaccess?
Andreas Schwarzkopf
schwarzkopf at artplan21.de
Thu Apr 29 09:57:50 CEST 2004
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 (that one for the
backend, where it does not make sense. The right order where:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/]*\.html$ index.php
RewriteRule ^typo3$ typo3/index_re.php
In order to make this rule work also for windows it has to have a slash
before the target file / dir:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[^/]*\.html$ /index.php
RewriteRule ^typo3$ /typo3/index_re.php
this version works also on Linux for me.
Please correct me if I wrong,
if it is true, we test it and then maybe can Ingmar and Michael patch
the packages.
grtx
Andreas Schwarzkopf
More information about the TYPO3-dev
mailing list