If you are switching on the AllowEncodedSlashes setting in the apache conf file, and it doesn’t seem to be making any difference, then it may well be because you are using vhosts, and the setting is not automatically propergated through them.

You’ll need to edit the vhost and specify the setting within the config part of the vhost:

<VirtualHost *:80>
    ServerName mytest.local
    DocumentRoot /var/www/site2/
    AllowEncodedSlashes On
</directory>

Be sure to read all about it, and understand the security risks.

By admin

5 thought on “AllowEncodedSlashes not taking effect?”
  1. Oh goooshh! Thaanks!! So simply, and yet so difficult… I was searching for… hours and your only tip helped! I tried .htaccess, httpd.conf… but not vhost!
    Thanks!

    1. I’m not sure how you would add it to the htaccess in all honesty. I looked at the docs and it looks like its a vhost config item.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.