i´ve got it  ;-)

@martijn thanks for your help.


RewriteCond  %{HTTP_USER_AGENT}  .*nokia.* [NC,OR]
[...]
RewriteCond  %{HTTP_USER_AGENT}  .*safari.* [NC]
RewriteRule  ^/$                 http://www.domain.de/XY2/ [R,L]

RewriteCond  %{HTTP_USER_AGENT}  .*nokia.* [NC,OR]
[...]
RewriteCond  %{HTTP_USER_AGENT}  .*safari.* [NC]
RewriteRule  ^/([^XY].*)$       /XY2/$1 [R,L]


RewriteRule  ^/$                 /XY1/ [R,L]
RewriteRule  ^/([^XY].*)$       /XY1/$1 [R]

have a nice day.


Martijn wrote:
> On 7/17/07, tina exner <[EMAIL PROTECTED]> wrote:
>> I have the below RewriteRules configured in my httpd.conf (Apache
>> Version 2.0.54)
>> But i never reach the site XY1, because:
>> (rewrite.log)...explicitly forcing redirect with...
>> I changed the Flags but it still doesn´t work.
>> How do i have to configure it to work correctly ?
>>
>> RewriteCond %{HTTP_USER_AGENT} .*nokia.* [NC,OR]
> [..]
>> RewriteCond %{HTTP_USER_AGENT} .*safari.* [NC,OR]
>> RewriteRule ^/$ http://www.domain.de/XY2/ [L]
>>
>> RewriteRule ^/$ http://www.domain.de/XY1/ [R,L]
>
> What if you remove the ,OR from the last RewriteCond?
>
> Martijn.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to