Hi,
I am writing a html file under ~/public_html on our server. I would like to refer to other files under ~/public_html in the html file. I now only know how to specify the path to those files (like pictures) via relative path from the html file. But I would like to know if there is a way to specify the absolute path? Because sometimes I will move the html file under ~/public_html, so the relative path from the html file to those files might not hold any longer.
Thanks and regards!
Update:
Thanks! I still not quite get how to do it. For example,
if on the linux server, I have ~/public_html/doc/doc1.html and ~/public_html/pic/pic1.jpg. I would like to refer to pic1.jpg in the doc1.html. I can just write "../pic/pic1.jpg". How I can access doc1.html from outside via link www.xxx.xxx/~tim/doc/doc1.html and the picture can be loaded correctly.
But if later I move doc1.html to ~/public_html/doc_old/doc1.html, the relative path from doc1.html to pic1.jpg will not hold any longer. I just wonder if I could specify some absolute path for pic1.jpg in doc1.html for external accessing?