I have a problem. I want to end up with only root path urls in my webpages(eg img src="/images/image.jpg") as opposed to relative paths(img src="../../images/image.jpg"). When browsing my site on the server once, I found lots of extra "///" characters in the address bar which I believe is because I used "../" in my url's, this is one of the reasons I want root paths. And also of course, if I change position of the page in the directory structure, I would have to change all relative paths.
So why cant I just use root paths? Simply becuase unless I upload it to my server, webpages will not display correctly on my computer becuase I cant set a root directory for my browsers.
Is there any software I can use to set a pseudo-server on my computer which will set a root directory for all browsers? Or are there any firefox/ie plugins that will accomplish this?
I was wondering how other designers deal with this issue. Right now I just manually edit the css style and image paths, links to other local pages I leave as root paths, which means I cant browser them unless I upload them to my server.
I will try writing a script to automatically change all "../../../" in my pages to just "/", which would solve the problem of editing relative to root, but I would still have all the other issues I mentioned above.
Any ideas are appreciated.









Bookmarks