[Typo3-dev] Bug in .htaccess?
Andreas Schwarzkopf
a.schwarzkopf at meinsystem.de
Fri Apr 30 13:41:43 CEST 2004
Hi Michael,
"Michael Stucki" <mundaun at gmx.ch> schrieb im Newsbeitrag news:mailman.1.1083285804.19477.typo3-dev at lists.netfielders.de...
> # If the file/symlink/directory does not exist => Redirect to index.php
> # Important note: If you copy/paste this into httpd.conf instead
> # of .htaccess you will need to add '%{DOCUMENT_ROOT}' left to each
> # '%{REQUEST_FILENAME}' part.
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
Somebody who use RealURL has to check if it works. May be Martin?. As I wrote above it also works for all files, so
the (html|pdf) part is may be not nesessary.
> What about Windows installations? Does it work or not?
I tried very many times in different combinations, the RewriteBase works not properly with windows for me.
You have allways specify the slash before the file [-> /index.php ]. So downwards directories like mydomain/mypath/typo3rootdir
do not work at all!
My suggestion:
--- snip ---
# Main URL rewriting.
# The example will rewrite all *.html and *.pdf files to index.php
# This may be helpful when using an extension that can generate PDF files
# on the fly.
# uncomment this, if you use windows and simulateStaticDocuments does not work (only for the website root directory)
# RewriteRule .*\.(html|pdf)$ /index.php [L]
RewriteRule .*\.(html|pdf)$ index.php
--- snip ---
Andreas
More information about the TYPO3-dev
mailing list