http - Why does a directory exist and not exist on a web server simultaneously? -


while i'm sure title improved clarity, meaning thus:

when fetching url file download @ http://example.com/dir1/dir2/file.zip, response code 200, yet attempting access http://example.com/dir1, or http://example.com/dir1/dir2, elicits 404 response code.

why this?

urls don't correspond actual directories on server. path component of url name; server can translate name whatever wants on end.

in case seems /dir1/dir2/ is directory on server, doesn't mean anything. server knows resource named /dir1/dir2/file.zip, doesn't know resource named /dir1.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -