[TYPO3-english] mod rewrite redirecting when no language is set in url

Peter Russ peter.russ at 4many.net
Thu Feb 25 10:46:41 CET 2010


--- Original Nachricht ---
Absender:   jochem nabuurs
Datum:       25.02.2010 09:53:
> Xavier Perseguers wrote:
>> Hi,
>>
>>> I've tried the following:
>>>
>>> # This does not work
>>> RewriteRule !^(en|nl|de)/(*) http://www.domain.com/en/$2 [L]
>>>
>>> # This DOES work
>>> RewriteRule !^(en|nl|de)/(*) http://www.google.com [L]
>>>
>>> # Default
>>> RewriteRule (.*) index.php [L]
>>
>> Why did you write (*) instead of (.*) as second regex part?
>>
> 
> Sory, thats a typo:
>  (*) should be (.*)
> 
> * means "0 or N of the preceding text" so the . (any single character) 
> is needed.
> 
> But can anyone offer a solution?

Enable logging  and check it.

-- 
"Wer weiß, wie Gesetze und Würste zu Stande kommen, kann nachts nicht 
mehr ruhig schlafen." (Otto von Bismarck)

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


More information about the TYPO3-english mailing list