Allowing Slashes in URL with Apache

I have a url like this https://www.dailyithelp.com/countries/us/12%26pensylvania

so in normal situation, we only have 3 sub folder: countries,us,12/pensylvainia , but in Apache2 , it treats this as 4 : countries,us,12,pensylvania , Apache 2.4 cheats all url encoded slashes as normal slash , if you want to fix this you have to allow slash in the url.

<VirtualHost 127.0.0.1:80>
    ServerName mywebsite.socm
    AllowEncodedSlashes On

</VirtualHost>

Leave a Reply

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