Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder lokeshshettyk's Avatar
    Join Date
    Aug 2008
    Location
    On the way to the moon!
    Posts
    157
    Thanks
    5
    Thanked 20 Times in 20 Posts

    Simple redirect problem - apache

    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
    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
    Last edited by lokeshshettyk; 11-17-2008 at 11:35 AM.

  • #2
    Regular Coder lokeshshettyk's Avatar
    Join Date
    Aug 2008
    Location
    On the way to the moon!
    Posts
    157
    Thanks
    5
    Thanked 20 Times in 20 Posts

    Resolved

    Thanks guys, I fixed it myself

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    What was the solution?
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •