RSLancastr
www.StopSylvia.com
All:
When developing a web site on my home PC, I have always avoided the problem of linking to other pages within the site by using "relational" URLs.
For instance, I have a site where there is a /contacts folder and a /home folder (both in the root). Each has its own index.htm, and each links to the other.
If the link in /Contacts/index.htm reads <A HREF="/home/index.htm">, it will work once on the site's server, but not while it is on my PC (unless I create the site in a drive's root directory - ick).
I have gotten around this in the past by using "relational" links such as <A HREF="../home/index.htm">, which works both on the server, and in whatever folder on my PCI choose to create the web site.
Now that I am delving into the world of CSS, I'm finding that explicit (rather than relational) URLs and URIs are recommended, partly because some browsers incorrectly implement the standard, so some look for the file in relation to the folder with the HTML, others in relation to the folder with the CSS.
So, what is the best way to fool my PC into looking at a specific folder as the root of a drive? It's a standalone PC, so I can't seem to use the Map Network Drive, the only solution which occured to me offhand.
Do I need to install a web server on my PC?
Thanks for any and all suggestions.
When developing a web site on my home PC, I have always avoided the problem of linking to other pages within the site by using "relational" URLs.
For instance, I have a site where there is a /contacts folder and a /home folder (both in the root). Each has its own index.htm, and each links to the other.
If the link in /Contacts/index.htm reads <A HREF="/home/index.htm">, it will work once on the site's server, but not while it is on my PC (unless I create the site in a drive's root directory - ick).
I have gotten around this in the past by using "relational" links such as <A HREF="../home/index.htm">, which works both on the server, and in whatever folder on my PCI choose to create the web site.
Now that I am delving into the world of CSS, I'm finding that explicit (rather than relational) URLs and URIs are recommended, partly because some browsers incorrectly implement the standard, so some look for the file in relation to the folder with the HTML, others in relation to the folder with the CSS.
So, what is the best way to fool my PC into looking at a specific folder as the root of a drive? It's a standalone PC, so I can't seem to use the Map Network Drive, the only solution which occured to me offhand.
Do I need to install a web server on my PC?
Thanks for any and all suggestions.