Uploaded PDFs giving 404 error

I had support doing work on some stuff last week and then the links to the PDF's stopped working. When you click on the link of a PDF it redirects you to a page not found. Files are on ftp and in the media library. When I upload PDF files to the library, I noticed that I can see a preview but when I try to access them via a link it returns 404 error.

  • Predrag Dubajic
    • Support

    Hey Justin,

    Hope you're doing well today :slight_smile:

    I had a look at your installation and saw that you had some custom .htaccess rules to prevent media access and PDF was not listed there as available file.

    I've changed this inside /wp-content/uploads/.htaccess file and you should be good to go now :slight_smile:

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.