...

View Full Version : Simple redirect problem - apache



lokeshshettyk
11-17-2008, 10:15 AM
I want to redirect
http://xxx.abc.com/any/thing/here
to
http://kkk.xxx.abc.com/any/thing/here

if the user is using an iphone or ipod
Here is my code


RewriteCond %{HTTP_USER_AGENT} (ipod|iphone) [NC]
RewriteRule ^(.*) http://kkk.xxx.abc.com/$1? [R=301,L]


Gives me the following error

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Please help

lokeshshettyk
11-18-2008, 06:57 AM
Thanks guys, I fixed it myself :)

_Aerospace_Eng_
11-18-2008, 07:56 AM
What was the solution?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum