The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using a single quote in RewriteRule

Discussion in 'General Discussion' started by Website Rob, Mar 10, 2003.

  1. Website Rob

    Website Rob Well-Known Member

    Mar 23, 2002
    Likes Received:
    Trophy Points:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Have a situation where a Client previously setup a Dir. using a two word name with a single quote and a space between the two words. Now, the idea is to use a RewriteRule and redirect all requests for anything in this dir. to another page. Since Apache doesn't doesn't like blank spaces, %20 is used and, although it does not give an error when using the single quote, it doesn't apply the Rewrite directive either.

    RewriteRule client's%20dir/.*(.*)

    Presuming a HEX charactor is required, does anyone know what it is for a single quote? Or, is there something I'm missing?

Share This Page