Pattern Matching Escape Character

Discussion in 'Apache' started by sharingsunshine, Mar 23, 2010.

  1. #1
    Hello,

    I have a need to redirect urls that are coming into my site with \' at the end of the .html/. I have tried normal ways to pattern match but they all seem to come up short. Here are a few examples of what I have tried.

    Example Url - http://www.abc.com/jky.html/\'
    RedirectMatch 301 ^/(.+).html/\\'$ $1.html

    RedirectMatch 301 ^/(.+).html/\'$ $1.html

    RedirectMatch 301 ^/(.+).html/%255C'$ $1.html

    I would appreciate any help you can give me.

    Thanks,

    Randal
     
    sharingsunshine, Mar 23, 2010 IP