P
P
photosho2019-09-12 09:47:06
Apache HTTP Server
photosho, 2019-09-12 09:47:06

Why do links to files with a trailing slash result in a 404?

Is it some kind of feature of the server that links to files with a slash at the end (site.ru/file.pdf/) lead to a 404 error? At what level does a 404 redirect happen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2019-09-12
@photosho

Because site.ru/file.pdf is a file access. And site.ru/file.pdf/ - accessing the directory inside the file (this cannot be, but the point is)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question