I have an info page I’ve written in plain HTML.
All the image links are like so:
<img src=”/images/image.png” /> so that they refer to the root of the web site.
However I want to look at the page with the images embedded before updating it. In chrome, <img src=”/images/image.png” /> looks in file:///c:/imgs/. However I want to redirect this to file:///C:/web/site/imgs/.
I’m trying to use <base > to no avail.
You can’t use
<base>when your URLs are absolute like that. Here are a couple of alternatives:Solution #1: Use the Windows
substcommand to make a drive letter for your “root” directory:then point your browser at R:\
Solution #2: Install a web server with the root configured to be
C:\web\site, and point your browser at that.Using a real web server is a much better way to test a web site – things like the browser’s JavaScript security policies are significantly different between local files and files read via a web server.