Bad Request Error When Downloading File From Website

If your situation is anything like mine was, you are very frustrated that you can’t figure out why you can’t download a simple file from you site. In my case, my website is WordPress, and I have followed all of the steps for uploading a file to a page and making it a download link.

But when you go to click the link, you get:

Bad Request

Your browser sent a request that this server could not understand.

 

What gives? I’ll tell you what gives! Odds are you are doing everything right. The problem is most likely that you have percentage symbols in your file name (%). Remove those from the original file name, re-upload the file, update your link, and try again. I bet it works!

Easy. No more “Bad Request” error in any browser. I’m not sure what causes this, possibly some Apache misconfiguration or quirk, but for some reason this solution solves the problem.

About Brian Johnson

Brian Johnson

Brian Johnson is the founder of PageCrafter, a Minneapolis-area web design and hosting company. He specializes in WordPress development, website security, hosting infrastructure, and ongoing website maintenance. Brian works hands-on with hundreds of business websites, helping organizations keep their WordPress sites secure, reliable, and up to date and has been building websites for almost two decades.

Leave a Reply

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