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

jochem nabuurs jochem at roquin.nl
Thu Feb 25 09:53:06 CET 2010


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?


More information about the TYPO3-english mailing list