Search code examples
apache.htaccessinternal-server-error

400 Bad Request when URL ends with %


All the URLs ending with % is giving following error

"Bad Request,Your browser sent a request that this server could not understand."

I have redesigned my website and earlier as per my google analytics URLs ending with % was running.

I want to mention that I tried using same old htaccess but was not able to fix it. Other important change which I made was in hosting where I have pointed my server into a sub folder or the root.

Please help me in fixing it


Solution

  • % is a reserved character and should not be used for anything except percent encoding.

    If you really need to pass the character on your url, use %25