OiO.lk Blog pdf Newly uploaded files resulting in 404 error pages
pdf

Newly uploaded files resulting in 404 error pages


We are experiencing a PDF file access issue on our WordPress site.

We have a folder located below the wwwroot directory named /policies:

/site/wwwroot/policies

Newly uploaded files in the /policies directory are returning a 404 error in the browser, while pre-existing files load without any issues.

For example, here is a file that returns an error: https://www.cdsbeo.on.ca/policies/413-Progressive_Discipline.pdf

And here’s another file that loads correctly: https://www.cdsbeo.on.ca/policies/F2-3_Transcript_Requests.pdf

Both PDF files are stored in the /policies directory, so I’m unsure why one file works while the other does not.

We tried testing this issue by uploading a new PDF file to the /policies directory.. and the result was a 404 page. But as mentioned.. any pre-existing PDF file loads fine in the browser.

I think we need to make an adjustment to the .htaccess but I am unsure.



You need to sign in to view this answers

Exit mobile version