Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice