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 is a website developer and designer living in Minneapolis, Minnesota with a passion for code and WordPress. He spends his days building WordPress websites for small businesses, developing new code with the online community, and living life.

Leave a Reply

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