Simply Testable Blog

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

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? http://app.simplytestable.com/job/https://simplytestable.com/start

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:

<VirtualHost 127.0.0.1:80>
    ServerName app.simplytestable.com
    AllowEncodedSlashes On
    # ...
</VirtualHost>

Thanks to: