Question

I am currently having issues with encoded slashes on my Apache server. The url structure is as follows:

www.site.com/url/http%3A%2F%2Fwww.anotherurl.com/format/xml

I am then getting a 404 error from Apache (my application should handle all errors.)

Apparently the AllowEncodedSlashes On directive should help me in this spot, but it doesn't seem to be making any impact whatsoever. I've placed it in the httpd.conf like so:

<VirtualHost *:80>
DocumentRoot /var/www/vhosts/site.com/httpdocs
ServerName site.com

AllowEncodedSlashes On
</VirtualHost>

Then restarted Apache with the /etc/init.d/httpd restart command.

I've been trying to solve this issue for days now. I've some people saying that the AllowEncodedSlashes directive works, and some people saying that it's buggy and should be depreciated. I'm wondering if there's an issue with AllowEncodedSlashes and clean URL's working together?

Anyway, all help is appreciated. Thanks in advance.

Was it helpful?

Solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top