.htaccess Character Escaping

Discussion in 'Apache' started by Alastair Gilfillan, Feb 6, 2011.

  1. #1
    Hi. I'm trying to re-direct/re-write an external URL that I don't have control over (not sure who stuffed up this link :rolleyes:) and was wondering if anyone good with Apache could help me. The external site is linking to:
    /images/tours/australia/melbourne/australia_melbourne_tours_74_H.jpg" width="56" height="50" alt="image"/></a> </div> <div class="c0 r"><a href="/m/imgres?q=australia+h+penguin
    Code (markup):
    Which appears to end up going to the following escaped address:
    images/tours/australia/melbourne/australia_melbourne_tours_74_H.jpg%22%20width=%2256%22%20height=%2250%22%20alt=%22image%22/%3E%3C/a%3E%20%3C/div%3E%20%3Cdiv%20class=%22c0%20r%22%3E%3Ca%20href=%22/m/imgres?q=australia+h+penguin
    Code (markup):
    I've tried lots of thing but I can't get it to go to the page that I want; just getting my 404 page. My guess is that it has something to do with the huge, convoluted address and .htaccess-unique escaping methods but I can't be sure as I'm not that good with it. :p

    Any help'd be much appreciated. :) Maybe one of you could quickly test re-writing the same URL on your own server, if you're feeling very friendly. ;)
     
    Alastair Gilfillan, Feb 6, 2011 IP