Using VBScript to make a page things it's in another directory

Discussion in 'C#' started by MidoriWeb, Feb 4, 2007.

  1. #1
    I'm not sure if this is possible. I've searched around and I couldn't find and answer to my question.

    I have a website... let's say it's:

    http://www.mysite.com

    On my website I have a page:

    http://www.mysite.com/default.asp

    Now... I need that page to "think" it is actually:

    http://www.mysite.com/directory1/default.asp

    I'm running some software in "/directory1/" and I need to grab some of that information and put it into the root of my website. The problem is, the software has a license and it will only allow me to call from this application within the directory1 folder.

    So... my question... can I use vbscript to make http://www.mysite.com/default.asp think it is actually http://www.mysite.com/directory1/default.asp?

    Inside of my current default.asp page on the root of my server I have the following code:

    <!--#include file="directory1/default.asp" -->

    And that's it. Would I be able to add some code above that line to make the server think the url is really in the directory1 folder? If not... what work around ideas can/should I check into?
     
    MidoriWeb, Feb 4, 2007 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    If you use .NET you can emulate other folder structures with the Sitemap file. You can say /dir1/ = /webdirectory1/ so it would treat it just the same. We would actually have to see your code to fully help you :)
     
    ccoonen, Feb 5, 2007 IP