Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Site Relative Links Help

Status
Not open for further replies.

gus121

Technical User
May 9, 2002
298
GB
Hi i cant get any site relative links like these to work.
e.g <img scr=&quot;/images/image.gif&quot; />

I can only get links which are either full path
<img scr=&quot; />
or relative.
<img scr=&quot;../images/image.gif&quot;
Is this a problem with the setup with IIS or a code issue?

I found away around this with the html <base> tag expicitly stating the path to the root of the web server but none of the major html editors support the use of the tag.

I also have the same problem with Server Side Includes (SSI).

The following works:

<!--#include file=&quot;../inc/left_navi.inc&quot; -->

The following does not:

<!--#include virtual=&quot;/inc/left_navi.inc&quot; -->

thanks for all your help.

regards

Angus


Angus
 
get rid of the first forward slash...
and its 'src' not 'scr'

<img src=&quot;images/image.gif&quot;>

on error goto hell
 
sorry long time since I hand coded html that was just a typo in the example I gave you

Angus
 
cool, the forward slash may be the problem. You may also want to make sure your sites sitting in a virtual directory in iis. This may prevent you from refencing the images in the way that you have

on error goto hell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top