RewriteRule Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <texner@xxxxxxxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux