Simply Testable Blog

Figuring out how to automate away the pain of routine front-end web testing; the story behind

213 posts covering the initial idea, growth of the service, features, advances, failures and successes.

Allowing Slashes in the URL Path With Apache

Ever found yourself needing to allow slashes in a URL path?

Even if you correctly encode slashes as %2F, Apache will decode them and treat them as normal path part separators, just as if you had used a slash as it is most commonly used.

This is a little daft. If you want to separate path parts, use a slash. If you want to literally include a slash, encode it.

Nonetheless, you can configure Apache to allow encoded slashes with AllowEncodedSlashes On in the relevant vhost:

    AllowEncodedSlashes On
    # ...

Thanks to: