Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

Virtual Pathing Problem

I am moving a website from a dedicated server to a server that will host multiple sites. Most of the path descriptions on the dedicated server code are relative:
 (i.e. <!-- #include virtual =  "/include/somefile.aps" --> or <img src = "/images/pixel.gif" )
and the defalt page is at the root (i.e.  wwwroot.default.asp). Now when I move a copy of the code to the new server, is will not be at root but in a subdirectory (i.e. wwwroot/myweb/default.asp).  All of the paths fail and the only way I can get the include to work is to change it to:
 <!-- #include file = "../../include/somefile.asp" --> and <img src="../../images/pixel.gif">.
 Do I have to change all of the pathing on my code??  Ugly thought!
0
kevbob650
Asked:
kevbob650
  • 2
1 Solution
 
lodar123Commented:
to my knowledge... its the ugly answer :) so yes
0
 
kevbob650Author Commented:
So there's no magic "virtual directory" or way to trick IIS? This is a big site with hundreds of pages.
0
 
lodar123Commented:
i guess you could create a virtual directory, or virtual domain name and the put the url for the include. I never tried that option though.  I used ASP most of the time and used global variables for my paths then just needed to add the file name
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now