When building a static HTML site, you can set the base url like so
. Supposedly when you insert, say, an image, y
Lose the leading /
to make it a relative URL:
There are 3 types of URL:
Fully Qualified, e.g. http://example.org/path/to/file
Absolute, e.g. /path/to/file
(assuming the link comes from any page in the example.org domain)
Relative, e.g. path/to/file
(assuming the link comes from the root (/
) "folder" or there is a base URL http://example.org/
)
or to/file
(assuming the link comes from within the 'path' "folder" or the base URL is http://example.org/path/
)