Redirection Help

Discussion in 'Programming' started by gnarula, May 10, 2008.

  1. #1
    This is kinda hard to explain but well, I want to set up a redirection on site.com so that all links like site.com/file/blah.mp3 go to site1.com/whatever/blah.mp3. The thing is I don't want the user to see the redirection, and site1.com is NOT hosted by me..

    Any ideas where to start?? Mod_Rewrite fails for the above requirements..

    Regards,

    gnarula
     
    gnarula, May 10, 2008 IP
  2. Bagi Zoltán

    Bagi Zoltán Well-Known Member

    Messages:
    364
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    110
    #2
    If you don't want user to see the redirection, it won't be else but a content duplication. You may use others content, but without permission it is not too ethical in my opinion. Otherwise file_get_content php function combining with the requested URI server variable would solve this problem.
     
    Bagi Zoltán, May 10, 2008 IP