A recent project found that%2f's relative URL was identified, resulting in 404 errors.
Url:http://w3schools.com/xxx%2fxxx%2ftest.asp?name=stale&car=saab
This behavior occurs because Apache does not recognize the encode URL.
You can add allowencodedslashes on to the configuration file to resolve it.
<virtualhost *:80>
DocumentRoot "/var/www/weble.org/app/webroot"
ServerName weble.org
Allowencodedslashes on
<directory "/var/www/weble.org/app/webroot" >
Order Deny,allow
Allow from all
</Directory>
</VirtualHost>
There is also a solution is in the picture of the problem, call JS decodeURIComponent method.
Encode and decode a URI: <script type= "Text/javascript" >
var uri= "Http://w3schools.com/my Test.asp?name=ståle&car=saab";
var uri_encode=encodeuricomponent (URI);
document.write (Uri_encode);
document.write ("<br/>");
document.write (decodeURIComponent (Uri_encode));
</script>
The output of the code above would Be:http%3a%2f%2fw3schools.com%2fmy%20test.asp%3fname%3dst%c3%a5le%26car%3dsaab
Http://w3schools.com/my Test.asp?name=stale&car=saab