in reply to Using HTML templates
linking to images using the full url won't have any effect on how many connections are open unless the hostname in the url is different from the hostname of the page (eg, if the page is http://www.example.com/index.html and it links to http://example.com/index.html that might make for an extra connection). even if that's the case, that's pretty minor. the main problem with using the full url is that it makes it hard to change things. say you've got a development version on a staging machine and a production version on another machine. if the designers want to change the look of the site on the dev version, they can't just swap out new images because it would affect the production version too.
what can you do about it?
without knowing more about your specific setup, it's hard to tell. some cleverness with relative paths (eg, 'img/navleft.jpg') and symlinks might do it. or you could slurp in the files and use a regexp to fix things however you want them. if the scripts are at least on the same server as the images and templates (eg, in /cgi-bin/) you can probably get away with just specifying the images using syntax like '/img/navleft.jpg' giving the full path from the document root. that would link to http://www.example.com/img/navleft.jpg no matter where on the server the page is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using HTML templates
by citro (Initiate) on May 21, 2002 at 18:15 UTC |