I am in the process of moving a site from one hosting company to another.
This site is fairly large, with hundreds of asp files, each with multiple
"include" statements.
The new host has a different webspace folder structure for it's clients than
the old host. At the moment, this is forcing me to have to append all the
paths for all the include statements (not to mention all the other
path-related code) to make things work.
Example:
Old host url to homepage: http://www.oursite.com/index.asp
New host url to homepage http://www.oursite.com/our-site-root...host/index.asp
I've never had to move a site this complex, so my question is - what is the
best way or "best practices" method to move this site successfully without
having to change hundereds of lines of code?
I did not write the original site code, and there is no global variable
available to address this.
Thank you very much for any assistance!
Tim 6 1915
"Tim" <zzz@@zzz.zzz.c om> wrote in message
news:3Z******** ************@co mcast.com... I am in the process of moving a site from one hosting company to another. This site is fairly large, with hundreds of asp files, each with multiple "include" statements.
The new host has a different webspace folder structure for it's clients
than the old host. At the moment, this is forcing me to have to append all the paths for all the include statements (not to mention all the other path-related code) to make things work.
Example:
Old host url to homepage: http://www.oursite.com/index.asp New host url to homepage http://www.oursite.com/our-site-root...-host/index.as
p I've never had to move a site this complex, so my question is - what is
the best way or "best practices" method to move this site successfully without having to change hundereds of lines of code?
I did not write the original site code, and there is no global variable available to address this.
Thank you very much for any assistance! Tim
What is an example of an "include" that is used?
Does it not use a relative path?
Basically, can't you just change them to use relative paths?
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:JZ******** ************@co mcast.com... "Tim" <zzz@@zzz.zzz.c om> wrote in message news:3Z******** ************@co mcast.com... I am in the process of moving a site from one hosting company to another. This site is fairly large, with hundreds of asp files, each with multiple "include" statements.
The new host has a different webspace folder structure for it's clients than the old host. At the moment, this is forcing me to have to append all the paths for all the include statements (not to mention all the other path-related code) to make things work.
Example:
Old host url to homepage: http://www.oursite.com/index.asp New host url to homepage http://www.oursite.com/our-site-root...-host/index.as p I've never had to move a site this complex, so my question is - what is
the best way or "best practices" method to move this site successfully without having to change hundereds of lines of code?
I did not write the original site code, and there is no global variable available to address this.
Thank you very much for any assistance! Tim
What is an example of an "include" that is used?
Does it not use a relative path?
Basically, can't you just change them to use relative paths?
They are all using virtual paths, such as <!--#include
virtual="/includes/mainMenu_script .asp" -->
Right now, the only way I can get the asp files to work is if I append our
new root folder to the includes, like this:
<!--#include
virtual="/folder-assigned-by-new-webhost/includes/mainMenu_script .asp" -->
This would mean changing hundreds of lines of code burried within hundreds
of asp files, and I'm sure that is not the solution. I'm sure I'm missing
something, but I'm just not sure what.
Thanks.
"Tim" <zz*@zzz.zzz.co m> wrote in message
news:4u******** ************@co mcast.com... "McKirahan" <Ne**@McKirahan .com> wrote in message news:JZ******** ************@co mcast.com... "Tim" <zzz@@zzz.zzz.c om> wrote in message news:3Z******** ************@co mcast.com... I am in the process of moving a site from one hosting company to
another. This site is fairly large, with hundreds of asp files, each with
multiple "include" statements.
The new host has a different webspace folder structure for it's clients than the old host. At the moment, this is forcing me to have to append all the paths for all the include statements (not to mention all the other path-related code) to make things work.
Example:
Old host url to homepage: http://www.oursite.com/index.asp New host url to homepage http://www.oursite.com/our-site-root...-host/index.as p I've never had to move a site this complex, so my question is - what is
the best way or "best practices" method to move this site successfully without having to change hundereds of lines of code?
I did not write the original site code, and there is no global variable available to address this.
Thank you very much for any assistance! Tim
What is an example of an "include" that is used?
Does it not use a relative path?
Basically, can't you just change them to use relative paths? They are all using virtual paths, such as <!--#include virtual="/includes/mainMenu_script .asp" -->
Right now, the only way I can get the asp files to work is if I append our new root folder to the includes, like this:
<!--#include virtual="/folder-assigned-by-new-webhost/includes/mainMenu_script .asp" -->
This would mean changing hundreds of lines of code burried within hundreds of asp files, and I'm sure that is not the solution. I'm sure I'm missing something, but I'm just not sure what.
Thanks.
Can't you create a virtual folder as was done before?
If not, why don't you create a folder off of the webroot called "includes"
and change "virtual=" to "file="; this would allow for future migrations as
well.
Are the include files all in the same folder?
Also, are all of the ASP files in the same folder?
On Sun, 13 Feb 2005 22:42:55 -0600, "Tim" <zz*@zzz.zzz.co m> wrote: They are all using virtual paths, such as <!--#include virtual="/includes/mainMenu_script .asp" -->
Right now, the only way I can get the asp files to work is if I append our new root folder to the includes, like this:
<!--#include virtual="/folder-assigned-by-new-webhost/includes/mainMenu_script .asp" -->
This would mean changing hundreds of lines of code burried within hundreds of asp files, and I'm sure that is not the solution. I'm sure I'm missing something, but I'm just not sure what.
Thanks.
If all the virtual includes start with a / then it should be simple.
Just do a global find and replace on every file. (On a backup of
course!)
Replace: <!--#include virtual="/
With: <!--#include virtual="/new-root-folder/
I use a handy little text editor called Editpad[1] for things like
that as it can quite promptly open hundres of files at once and do a
find and replace on the whole lot.
I
[1] www.editpadpro.com
--
Iain Norman | http://www.eliteforum.org
I'd be looking for a different host. This new one is not giving you a normal
web site.
--
Mark Schupp
Head of Development
Integrity eLearning www.ielearning.com
"Tim" <zzz@@zzz.zzz.c om> wrote in message
news:3Z******** ************@co mcast.com... I am in the process of moving a site from one hosting company to another. This site is fairly large, with hundreds of asp files, each with multiple "include" statements.
The new host has a different webspace folder structure for it's clients
than the old host. At the moment, this is forcing me to have to append all the paths for all the include statements (not to mention all the other path-related code) to make things work.
Example:
Old host url to homepage: http://www.oursite.com/index.asp New host url to homepage http://www.oursite.com/our-site-root...host/index.asp I've never had to move a site this complex, so my question is - what is
the best way or "best practices" method to move this site successfully without having to change hundereds of lines of code?
I did not write the original site code, and there is no global variable available to address this.
Thank you very much for any assistance! Tim
"Tim" wrote in message news:4u******** ************@co mcast.com...
:
: They are all using virtual paths, such as <!--#include
: virtual="/includes/mainMenu_script .asp" -->
:
: Right now, the only way I can get the asp files to work is if I append our
: new root folder to the includes, like this:
:
: <!--#include
: virtual="/folder-assigned-by-new-webhost/includes/mainMenu_script .asp" -->
:
: This would mean changing hundreds of lines of code burried within hundreds
: of asp files, and I'm sure that is not the solution. I'm sure I'm missing
: something, but I'm just not sure what.
I'm sorry but this doesn't make any sense. With include virtual, / is the
virtual web root. If your include paths are all:
/includes/somefile.asp then that reads as http://domain.com/includes/somefile.asp.
If your physical path is similar to:
d:\websites\dom ain.com\webroot \includes
....then what is the problem?
--
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter Blum |
last post by:
I have built an assembly (dll) from which I expect third parties to
subclass. As a result, when my assembly has a version change, it will cause
any third party assembly based on it to break unless I establish a Publisher
Policy file. So I have that.
I have built a Windows app for the same product. This app prompts the user
for a path to a third party assembly that depends on my assembly. It opens
the third party assembly (Assembly.Load)...
|
by: Al Smith |
last post by:
I need help in implementing proper error handling.
I am trying to upload a file based on the sample code below. The code works
well except if the file selected is too big.
I do know about the maxRequestLength parameter of the <httpRuntime> section
and that works as expected. What I want is to enforce a max file size but
haven't been able to trap the error thrown when the file is too large and
that's where I could use some help.
|
by: Mikey_Doc |
last post by:
Hi
We are running cms 2002, Framework 1.0 with Visual studio 2002. We
have just upgraded to Framework 1.1 and visual studio 2003.
All of our database connection strings are stored within the machine
config, this was necessary as our web site has 4 environments and the
database server has a different name in each.
Since the upgrade the applications can't read the strings in the
|
by: Nathan |
last post by:
I have an aspx page with a data grid, some textboxes, and an update button.
This page also has one html input element with type=file (not inside the data
grid and runat=server).
The update button will verify the information that has been entered and
updates the data base if the data is correct. Update will throw an exception
if the data is not validate based on some given rules. I also have a custom
error handling page to show the...
|
by: Daniel Corbett |
last post by:
I am trying to save a file dynamically created in a webpage. I get the
following headers, but cannot figure out how to save the attachment. I am
basically trying to replicate what internet explorer would do in this case.
The headers I am getting are:
Headers {Content-Disposition: attachment; filename="dynamic_file.mdb"
Connection: close
Cache-Control: private
Content-Type: application/octet-stream
| |
by: Duffman |
last post by:
Hi,
I have what seems to be a common problem, but the solutions I've found don't
seem to work. I would like to use a web service to create a file at a UNC
location in a shared file. Currently I'm just running it locally and saving
the file locally using my machines UNC path.
I have given user ASPNET full control over the folder I want to write the
file to. I've also tried using the web config identity impersonation to use
my user...
|
by: David Thielen |
last post by:
Hi;
I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But
when it tries to write a file I get:
Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images
C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for
my app. In it's properties I did check "Write" as a permission.
What else do I need to do?
|
by: Phillip N Rounds |
last post by:
I'm having problems using the WebClient.UploadFile() command.
I have MySender.ASPX which is supposed to upload two files to the server.
There is also ConsumeFileUpload.aspx which is intended to handle receipt of
the files. Pertinent code for each is below.
When I run the process locally in debug mode, everything works great (
VS.NET 2003 , ASP 1.1 ).
When I run locally on the server, everything works great.
When I try to remotely...
|
by: laredotornado |
last post by:
Hi,
I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed
using Apache's apxs and the php library was installed to
/usr/local/php. However, when I set my "error_reporting" setting to be
"E_ALL", notices are still not getting reported. The perms on my file
are 664, with owner root and group root. The php.ini file is located
at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem
to be having an effect? ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |