./ = index.html
Posted: Tue Apr 22, 2014 3:45 am
HTMLValidator asked me to read http://webtips.dan.info/subdir.html#LinkHome
It asked me to replace all links of the form ../../../index.html with ./
To my astonishment, this trick works both on the web and locally.
The puzzle is, how does the browser know in which directory to look for the index.html?
Is it always the one directory off the root. Does it search the chain of directories back looking for an index.html?
Is this supposed to work if you have embedded index.html files in the tree to discourage directory listing?
It asked me to replace all links of the form ../../../index.html with ./
To my astonishment, this trick works both on the web and locally.
The puzzle is, how does the browser know in which directory to look for the index.html?
Is it always the one directory off the root. Does it search the chain of directories back looking for an index.html?
Is this supposed to work if you have embedded index.html files in the tree to discourage directory listing?