Re: Relative and Absolute Address

From: Roland Hall (nobody_at_nowhere)
Date: 05/26/04


Date: Wed, 26 May 2004 00:58:01 -0500


"Nick K." wrote in message news:e27sppqQEHA.3708@TK2MSFTNGP10.phx.gbl...
: I recently began maintenance work on a production web server that is
located
: in the root directory of a web server. I moved this into a sub web on my
: local web server in order to do work on it. I found that there is an
include
: file that references images:
:
: <img src = "/images/Header.gif"
:
: What worked correctly on the production server breaks on mine because of
the
: absolute address "/images". I removed the absolute address and changed
that
: to relative "images". This works in some cases but not in all because some
: of the asp pages are in sub folders and all include the same include file.
:
: I believe there is addressing like "~/" in .Net that would look in the web
: application directory but this doesn't seem to work in asp. Does anyone
have
: a way to address a gif file from the web application level and not the web
: server level?

Is this ASP or HTML?

-- 
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Relevant Pages

  • Re: Directory Transversal
    ... It does have a root directory but not like a normal web server. ... It also seams to have problems with spaces I tried %20 but that didn't seam to work so I ended up using PROGRA~1 for Program Files and DOCUME~1 for Documents and Settings and so on. ... Need to secure your web apps NOW? ...
    (Pen-Test)
  • Relative and Absolute Address
    ... I recently began maintenance work on a production web server that is located ... in the root directory of a web server. ... of the asp pages are in sub folders and all include the same include file. ...
    (microsoft.public.inetserver.asp.general)
  • Server Error in / Application. Cant find default
    ... am trying to test the following simple program on my Web Server and I get ... Parser Error Message: ... Source Error: ... The file"default.aspx" is in my root directory on the server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: include not working on Linux/Apache server
    ... You're telling PHP to access /skin/Test.php from the root directory of your system, not your web server. ...
    (comp.lang.php)
  • Re: Hide Web Folder/ Web Files in ASP System
    ... i am uploading my "First" web server files today. ... i usually send to my clients a link for them to download a certain file ... that i upload to the root directory of my web server space. ...
    (microsoft.public.dotnet.framework.aspnet)