404 error on some download links
-
Hey there,
After moving a WordPress website from one server to another, I’m getting 404 errors on some Download links (provided by the Download Attachments plugin).
The issue is prevalent only on some posts. Most of the posts are working fine (without doing anything).
The strange thing about this is that the redirect links clearly point to a file that exists in the server, in the correct location (I can see the file and download it via sftp). It’s only when accessing via the website (https) that it fails.
I’ve checked the server log, here’s a few examples of 3 different file download failures:
https://i.imgur.com/MgPULUK.png (at the moment of this specific screenshot, the log was showing errors only)Here’s an example of a successful download:
To conclude this search for help, I have to say that I’ve tried something that works. I can delete the (useless) file via sftp and reupload an exact copy (via WordPress, while editing a post). And the new link to the reuploaded file works without issue. But it’s just not feasible to go over dozens of posts now, one by one, to reupload files.
What troubleshooting avenues can I explore?
- The topic ‘404 error on some download links’ is closed to new replies.