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
Post a Comment