[Typo3-dev] Bug in .htaccess?
Karsten Dambekalns
k.dambekalns at fishfarm.de
Thu Apr 29 13:18:04 CEST 2004
Hello!
I have something else to add.
We did that before CeBIT, and I haven't looked at this again yet (too
less time), so if the issue is solved in the core, just ignore it. And
yes, this as about rewrite rules, just read on...
If you do FE editing, and create a new page, TYPO3 generates a backurl
to lead you to the page just created. It does this by appending
&id=yxz to the URL you came from. Works fine...
.. unless you use simulateStatic. Then you get something like
mypage.html?id=xyz, which obviously cannot work.
We 'hotfixed' this by adding this to .htaccess:
RewriteRule ^[^/]*\.html&id=([0-9]*)$ /t3cebit/index.php?id=$1 [R,L]
before the usual stuff. It has a hardcoded path in it, I know, should
work without as well.
> Now before we release this file, let's also include the stuff from the the
> file in misc/php_optimized.htaccess and place some comments in front of the
> lines we don't want to use by default:
>
> ### Begin: Rewrite stuff ###
>
> # Enably URL rewriting
> RewriteEngine On
...
> # Stop rewrite processing if we are inside of typo3/
> RewriteRule ^typo3/ - [L]
The line from above should probably be added right here :)
> # If the file/symlink/directory does not exist => Redirect to index.php
> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
...
>
> ### End: PHP optimisation ###
>
> Any comments?
Looks very good.
Karsten
More information about the TYPO3-dev
mailing list