Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default Will new Domain affect virtual include?


I am getting twisted by the possibility that my virtual includes which
currently work great on non-domain remote IP will crash if I purchase a
domain and point it to one of my designated folders.....Here is the scenario
and question::

If my remote webhost at (eg):

http://69.8.9.9

....has a subfolder with with:

cats/index.asp

....which consumes VIRTUAL INCLUDE:

<!--#includes virtual="/cats/forms/frm_boat.asp"-->


....If I then point the domain: www.cats.com to the subfolder:
http://69.8.9.9/cats/ondex.asp

* ...will my VIRTUAL FILE STILL WORK?? *

OR

....will it no longer assume that http://69.8.9.9 is the root and assume that
/cats/ is the root

I can't seem to get my head around this


  #2  
Old July 19th, 2005, 07:28 AM
Ray at
Guest
 
Posts: n/a
Default Re: Will new Domain affect virtual include?

virtual include will just look at the structure of the site and include in
that way. So, if yoursite/cats/forms/frm_boat.asp is a valid url, you can
virtually include it regardless of what you do, unless I'm not comprehending
what you're doing. There will be two sites?

Ray at work

"jason" <jason@catamaranco.com> wrote in message
news:%23nj%23grQXDHA.2568@tk2msftngp13.phx.gbl...[color=blue]
>
> I am getting twisted by the possibility that my virtual includes which
> currently work great on non-domain remote IP will crash if I purchase a
> domain and point it to one of my designated folders.....Here is the[/color]
scenario[color=blue]
> and question::
>
> If my remote webhost at (eg):
>
> http://69.8.9.9
>
> ...has a subfolder with with:
>
> cats/index.asp
>
> ...which consumes VIRTUAL INCLUDE:
>
> <!--#includes virtual="/cats/forms/frm_boat.asp"-->
>
>
> ...If I then point the domain: www.cats.com to the subfolder:
> http://69.8.9.9/cats/ondex.asp
>
> * ...will my VIRTUAL FILE STILL WORK?? *
>
> OR
>
> ...will it no longer assume that http://69.8.9.9 is the root and assume[/color]
that[color=blue]
> /cats/ is the root
>
> I can't seem to get my head around this
>
>[/color]


  #3  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default Re: Will new Domain affect virtual include?

I'm probably not explaining correctly but at the moment my virtual includes
in a sub folder on a current IP (69.9.9..9) works...

But I am concerned that when I make one of my sub-folders LIVE with a domain
on this IP address my virtual includes will fall apart because they will no
longer reference from the root of the mother IP (which holds many sites) and
think the root is actually the sub-folder...

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:ePGhUwQXDHA.2484@TK2MSFTNGP09.phx.gbl...[color=blue]
> virtual include will just look at the structure of the site and include in
> that way. So, if yoursite/cats/forms/frm_boat.asp is a valid url, you can
> virtually include it regardless of what you do, unless I'm not[/color]
comprehending[color=blue]
> what you're doing. There will be two sites?
>
> Ray at work
>
> "jason" <jason@catamaranco.com> wrote in message
> news:%23nj%23grQXDHA.2568@tk2msftngp13.phx.gbl...[color=green]
> >
> > I am getting twisted by the possibility that my virtual includes which
> > currently work great on non-domain remote IP will crash if I purchase a
> > domain and point it to one of my designated folders.....Here is the[/color]
> scenario[color=green]
> > and question::
> >
> > If my remote webhost at (eg):
> >
> > http://69.8.9.9
> >
> > ...has a subfolder with with:
> >
> > cats/index.asp
> >
> > ...which consumes VIRTUAL INCLUDE:
> >
> > <!--#includes virtual="/cats/forms/frm_boat.asp"-->
> >
> >
> > ...If I then point the domain: www.cats.com to the subfolder:
> > http://69.8.9.9/cats/ondex.asp
> >
> > * ...will my VIRTUAL FILE STILL WORK?? *
> >
> > OR
> >
> > ...will it no longer assume that http://69.8.9.9 is the root and assume[/color]
> that[color=green]
> > /cats/ is the root
> >
> > I can't seem to get my head around this
> >
> >[/color]
>
>[/color]


  #4  
Old July 19th, 2005, 07:28 AM
Ray at
Guest
 
Posts: n/a
Default Re: Will new Domain affect virtual include?

I think I understand. So, just speaking of normal pages, a page that is
currently:

http://69.9.9.9/subdir/page.asp
will become
http://yourdomain.com/page.asp

If so, the virtual includes will fail. If you were to switch to file
includes, you'd be okay.

Ray at work

"jason" <jason@catamaranco.com> wrote in message
news:Os7$AMRXDHA.2256@TK2MSFTNGP10.phx.gbl...[color=blue]
> I'm probably not explaining correctly but at the moment my virtual[/color]
includes[color=blue]
> in a sub folder on a current IP (69.9.9..9) works...
>
> But I am concerned that when I make one of my sub-folders LIVE with a[/color]
domain[color=blue]
> on this IP address my virtual includes will fall apart because they will[/color]
no[color=blue]
> longer reference from the root of the mother IP (which holds many sites)[/color]
and[color=blue]
> think the root is actually the sub-folder...
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:ePGhUwQXDHA.2484@TK2MSFTNGP09.phx.gbl...[color=green]
> > virtual include will just look at the structure of the site and include[/color][/color]
in[color=blue][color=green]
> > that way. So, if yoursite/cats/forms/frm_boat.asp is a valid url, you[/color][/color]
can[color=blue][color=green]
> > virtually include it regardless of what you do, unless I'm not[/color]
> comprehending[color=green]
> > what you're doing. There will be two sites?
> >
> > Ray at work
> >
> > "jason" <jason@catamaranco.com> wrote in message
> > news:%23nj%23grQXDHA.2568@tk2msftngp13.phx.gbl...[color=darkred]
> > >
> > > I am getting twisted by the possibility that my virtual includes which
> > > currently work great on non-domain remote IP will crash if I purchase[/color][/color][/color]
a[color=blue][color=green][color=darkred]
> > > domain and point it to one of my designated folders.....Here is the[/color]
> > scenario[color=darkred]
> > > and question::
> > >
> > > If my remote webhost at (eg):
> > >
> > > http://69.8.9.9
> > >
> > > ...has a subfolder with with:
> > >
> > > cats/index.asp
> > >
> > > ...which consumes VIRTUAL INCLUDE:
> > >
> > > <!--#includes virtual="/cats/forms/frm_boat.asp"-->
> > >
> > >
> > > ...If I then point the domain: www.cats.com to the subfolder:
> > > http://69.8.9.9/cats/ondex.asp
> > >
> > > * ...will my VIRTUAL FILE STILL WORK?? *
> > >
> > > OR
> > >
> > > ...will it no longer assume that http://69.8.9.9 is the root and[/color][/color][/color]
assume[color=blue][color=green]
> > that[color=darkred]
> > > /cats/ is the root
> > >
> > > I can't seem to get my head around this
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #5  
Old July 19th, 2005, 07:28 AM
jason
Guest
 
Posts: n/a
Default Re: Will new Domain affect virtual include?

Damn! This is soooo tricky to do if you are deep in the folder structure -
in fact its a nightmare to use relative paths - I suppose I could use the IP
address in the virtual include to stop the include failing....

How do you normally work out relative FILE paths if you are deep inside the
folder structure?

Thanks
Jason
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uxbttURXDHA.2524@TK2MSFTNGP09.phx.gbl...[color=blue]
> I think I understand. So, just speaking of normal pages, a page that is
> currently:
>
> http://69.9.9.9/subdir/page.asp
> will become
> http://yourdomain.com/page.asp
>
> If so, the virtual includes will fail. If you were to switch to file
> includes, you'd be okay.
>
> Ray at work
>
> "jason" <jason@catamaranco.com> wrote in message
> news:Os7$AMRXDHA.2256@TK2MSFTNGP10.phx.gbl...[color=green]
> > I'm probably not explaining correctly but at the moment my virtual[/color]
> includes[color=green]
> > in a sub folder on a current IP (69.9.9..9) works...
> >
> > But I am concerned that when I make one of my sub-folders LIVE with a[/color]
> domain[color=green]
> > on this IP address my virtual includes will fall apart because they will[/color]
> no[color=green]
> > longer reference from the root of the mother IP (which holds many sites)[/color]
> and[color=green]
> > think the root is actually the sub-folder...
> >
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> > news:ePGhUwQXDHA.2484@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > virtual include will just look at the structure of the site and[/color][/color][/color]
include[color=blue]
> in[color=green][color=darkred]
> > > that way. So, if yoursite/cats/forms/frm_boat.asp is a valid url, you[/color][/color]
> can[color=green][color=darkred]
> > > virtually include it regardless of what you do, unless I'm not[/color]
> > comprehending[color=darkred]
> > > what you're doing. There will be two sites?
> > >
> > > Ray at work
> > >
> > > "jason" <jason@catamaranco.com> wrote in message
> > > news:%23nj%23grQXDHA.2568@tk2msftngp13.phx.gbl...
> > > >
> > > > I am getting twisted by the possibility that my virtual includes[/color][/color][/color]
which[color=blue][color=green][color=darkred]
> > > > currently work great on non-domain remote IP will crash if I[/color][/color][/color]
purchase[color=blue]
> a[color=green][color=darkred]
> > > > domain and point it to one of my designated folders.....Here is the
> > > scenario
> > > > and question::
> > > >
> > > > If my remote webhost at (eg):
> > > >
> > > > http://69.8.9.9
> > > >
> > > > ...has a subfolder with with:
> > > >
> > > > cats/index.asp
> > > >
> > > > ...which consumes VIRTUAL INCLUDE:
> > > >
> > > > <!--#includes virtual="/cats/forms/frm_boat.asp"-->
> > > >
> > > >
> > > > ...If I then point the domain: www.cats.com to the subfolder:
> > > > http://69.8.9.9/cats/ondex.asp
> > > >
> > > > * ...will my VIRTUAL FILE STILL WORK?? *
> > > >
> > > > OR
> > > >
> > > > ...will it no longer assume that http://69.8.9.9 is the root and[/color][/color]
> assume[color=green][color=darkred]
> > > that
> > > > /cats/ is the root
> > > >
> > > > I can't seem to get my head around this
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #6  
Old July 19th, 2005, 07:28 AM
Ray at
Guest
 
Posts: n/a
Default Re: Will new Domain affect virtual include?

You could do a find and replace on all your ASP pages using your favorite
text editor (which should be www.textpad.com) and replace /cats/ with /.

Ray at work

"jason" <jason@catamaranco.com> wrote in message
news:OV88vfRXDHA.1480@tk2msftngp13.phx.gbl...[color=blue]
> Damn! This is soooo tricky to do if you are deep in the folder structure -
> in fact its a nightmare to use relative paths - I suppose I could use the[/color]
IP[color=blue]
> address in the virtual include to stop the include failing....
>
> How do you normally work out relative FILE paths if you are deep inside[/color]
the[color=blue]
> folder structure?
>
> Thanks
> Jason[/color]


  #7  
Old July 19th, 2005, 07:29 AM
jason
Guest
 
Posts: n/a
Default PATHS for relative includes

That's not the problem - my problem is working out the PATH for the new FILE
includes which could go something like this:
..../../../../../forms/forma.asp

....It is really difficult to work out the PATH - is there a simple way to do
this?


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:O7nbziRXDHA.652@TK2MSFTNGP10.phx.gbl...[color=blue]
> You could do a find and replace on all your ASP pages using your favorite
> text editor (which should be www.textpad.com) and replace /cats/ with /.
>
> Ray at work
>
> "jason" <jason@catamaranco.com> wrote in message
> news:OV88vfRXDHA.1480@tk2msftngp13.phx.gbl...[color=green]
> > Damn! This is soooo tricky to do if you are deep in the folder[/color][/color]
structure -[color=blue][color=green]
> > in fact its a nightmare to use relative paths - I suppose I could use[/color][/color]
the[color=blue]
> IP[color=green]
> > address in the virtual include to stop the include failing....
> >
> > How do you normally work out relative FILE paths if you are deep inside[/color]
> the[color=green]
> > folder structure?
> >
> > Thanks
> > Jason[/color]
>
>[/color]


  #8  
Old July 19th, 2005, 07:29 AM
Ray at
Guest
 
Posts: n/a
Default Re: PATHS for relative includes

I know, but right now you have virtual includes. I'm saying you can keep
your virtual includes by replacing /cat/ with /. Do you ~want~ to switch to
file includes with relative physical paths like that?

Ray at work

"jason" <jason@catamaranco.com> wrote in message
news:O229rvRXDHA.2344@TK2MSFTNGP09.phx.gbl...[color=blue]
> That's not the problem - my problem is working out the PATH for the new[/color]
FILE[color=blue]
> includes which could go something like this:
> .../../../../../forms/forma.asp
>
> ...It is really difficult to work out the PATH - is there a simple way to[/color]
do[color=blue]
> this?
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:O7nbziRXDHA.652@TK2MSFTNGP10.phx.gbl...[color=green]
> > You could do a find and replace on all your ASP pages using your[/color][/color]
favorite[color=blue][color=green]
> > text editor (which should be www.textpad.com) and replace /cats/ with /.
> >
> > Ray at work
> >
> > "jason" <jason@catamaranco.com> wrote in message
> > news:OV88vfRXDHA.1480@tk2msftngp13.phx.gbl...[color=darkred]
> > > Damn! This is soooo tricky to do if you are deep in the folder[/color][/color]
> structure -[color=green][color=darkred]
> > > in fact its a nightmare to use relative paths - I suppose I could use[/color][/color]
> the[color=green]
> > IP[color=darkred]
> > > address in the virtual include to stop the include failing....
> > >
> > > How do you normally work out relative FILE paths if you are deep[/color][/color][/color]
inside[color=blue][color=green]
> > the[color=darkred]
> > > folder structure?
> > >
> > > Thanks
> > > Jason[/color]
> >
> >[/color]
>
>[/color]


 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles