[TYPO3] RealURL and .htaccess

Alexander master_nhg at mail.ru
Thu Aug 2 13:55:31 CEST 2007


Jean-François Gingras пишет:
> I never used the Rewrite engine but your RedirectMatch directive is wrong.
> 
> You need to escape the '.' (dot) in your regex is you want it to mean
> '.' (dot) and not 'any character'.

How can I do this?


> 
> Jean-François Gingras
> Webmestre
> Service des télécommunication et des technologie de l'information
> Cégep de Sainte-Foy
> Tél.: (418) 659-6600 #3825
> 
> 
> 
> Alexander wrote:
>> Alexander пишет:
>>> Jan Bednarik пишет:
>>>> Hey,
>>>>
>>>>> I have some problems with RealURL configuration and redirections. I 
>>>>> need  place some redirects into my .htaccess file, but now RealURL 
>>>>> has priority. How can I do this, I mean how to make priority for 
>>>>> .htaccess. I need to read .htaccess settings first then RealURL 
>>>>> settings.
>>>> .htaccess is always first. RealURL comes when request is redirected to 
>>>> index.php. That means you need to place your rules before rules that 
>>>> redirect everything to index.php.
>>>>
>>> Thanks for quick answer. I will try it.
>>
>> Seems like this advice doesn't works.
>> There is my .htaccess configuration:
>>
>> [code]
>> Options +FollowSymLinks
>> RewriteEngine On
>>
>> RedirectMatch Permanent ^/productsIndList.aspx?nodeID=2357$ 
>> http://www.domain.com/products/business/categories/30.html
>>
>>
>> RewriteCond %{HTTP_HOST} ^domain\.com$
>> RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L,QSA]
>>
>>
>> RewriteRule 
>> ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ 
>> - [L]
>> RewriteRule ^typo3$ typo3/index_re.php [L]
>>
>>
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteCond %{REQUEST_FILENAME} !-d
>> RewriteCond %{REQUEST_FILENAME} !-l
>>
>>
>> RewriteRule .* index.php [L]
>>
>> [/code]
>>
>> Is this right configuration?
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list