Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Virtual Pathing Problem

Posted on 2008-10-02
3
Medium Priority
?
189 Views
Last Modified: 2012-05-05
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
Comment
Question by:kevbob650
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

by:lodar123
ID: 22626564
to my knowledge... its the ugly answer :) so yes
0
 

Author Comment

by:kevbob650
ID: 22626739
So there's no magic "virtual directory" or way to trick IIS? This is a big site with hundreds of pages.
0
 
LVL 5

Accepted Solution

by:
lodar123 earned 500 total points
ID: 22626904
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question