[TYPO3] RealURL and .htaccess
Jean-François Gingras
jfgingras at cegep-ste-foy.qc.ca
Thu Aug 2 14:08:31 CEST 2007
Simply put un '\' (backslash) in front of it, like this:
\.
Plus, not sure if RedirectMatch is case sensitive, but you might want to
add '(?i)' at the begining of your regex to use case insensitive match:
(?i)^/productsIndList\.aspx?nodeID=2357$
The '?' character is also a special character and mean 'match zero or
one of the previous charater'. So you should probably escape it as well,
like this:
\?
So, in the end, we get the following regex:
(?i)^/productsIndList\.aspx\?nodeID=2357$
Not sure if it will work, but does hurt to try!
Cheers
Alexander wrote:
> 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
>
> _______________________________________________
> 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