[SOLVED] File download links causing 404 in Druapl 7
You might face situations where all of a sudden the download links have stopped working in your Drupal 7 website. The path to download file appears legitimate, but when we click on the down load link it will take you to the 404 page. This mostly happens with download links having white spaces.
This issue occurs due to a double encoding in the download link. Here the white space in the link gets double encoded. The encoding for the white space character is %20 when it encoded again it will become %2520. This will lead to a broken link formation.
This issue usually occurs in a website having both http and https pages. In this case when http link get redirected to https. It will be double encoded.
We can fix this issue by adding such link path to secure page lists. Following are the steps used to add a page in secure page list.
- Go to
Administration » Structure » Securepages
- Under "Pages which will be secure" session add the common path of the link in the pages box.
- Click save configuration.
That would fix the problem for you.