httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tina exner <tex...@picturesafe.de>
Subject [users@httpd] RewriteRule Problem
Date Wed, 18 Jul 2007 09:04:19 GMT
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@picturesafe.de> 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message