[Typo3-dev] mod_rewrite & get variables
Peter Russ
peter.russ at 4dfx.de
Tue Aug 31 02:21:07 CEST 2004
It's a bug:
tslib_fe:checkAlternativeIdMethods(), line 505 kills your id if the
redirect is initated by *.html and delivers the original *.html.
If this does make sense? Ask Typo3.
If there are any draw backs if checking first before killing the id? No
idea. Ask Typo3.
Hopes that helps.
Regs Peter.
Jon wrote:
> Sorry but your definitly NOT right!
>
> I was searching now for more than two weeks, because of this problem. It IS
> ab bug, and it is because of the index.php. I will explain it:
>
> My redirection rule had the ending ".html". Typo3 has an internal handler of
> these ".html" endings. I think it is because of the
> "simluateStaticDocuments" option. Even if you turn this option OFF, urls
> like www.yourdomain.com/43.html will be redirected with the following
> rewrite rule to index.php?id=43 and not to index.php?id=345. I don't know
> why, but it is so!
>
> RewriteBase /
> RewriteRule (\.html|/)$ index.php?id=345 [L]
>
> Per hazard I found the following solution:
> You have to use the ending *.htm. It is stupid but the internal handler of
> typo3 let this ending be as it is and you can use your own redirection rule.
>
> RewriteBase /
> RewriteRule (\.htm|/)$ index.php?id=49 [L]
>
> If some of the developpers read this note, he could probably investigate on
> this. I'm not familiar with the typo3 code.
>
> "Peter Russ" <peter.russ at 4dfx.de> schrieb im Newsbeitrag
> news:mailman.1.1093729255.4226.typo3-dev at lists.netfielders.de...
>
>>Check http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteRule
>>
>>as ? = & have special meaning and should be replaced.
>>It's neither a problem in Typo3 nor in index.php. It's just RTFM ;-)
>>
>>Regs. Peter.
>>
>>
>>Brain wrote:
>>
>>
>>>I have a problem, that I can't solve. Probably its a bug, but if its is
>>>really one, it is a bad one.
>>>
>>>I have an easy rewrite rule
>>>
>>>RewriteEngine On
>>>
>>>RewriteBase /
>>>RewriteRule (\.html|/)$ index.php?id=49&func=1234 [L]
>>>
>>>All URL like this http://www.mydomain.com/test.html should be rewrited
>
> an
>
>>>redirected to http://www.mydomain.com/index.php?id=49&func=1234.
>>>Unfortunately, the internal redirect is not working. All parameter get
>
> lost
>
>>>(like id=49, func=1234). The page is redirected to index.php without any
>>>parameters. I tested this on several OS an installations of Typo
>
> (Version
>
>>>3.6.2)
>>>
>>>The problem seems to be in the index.php. The GET Variables get not
>>>correctly extracted.
>>>
>>>
>>>Gruss
>>>Jon
More information about the TYPO3-dev
mailing list