Re: Upload settings for multiple domains in 'default.asp'
- From: p c <nospam@xxxxxxxxxx>
- Date: Mon, 11 Apr 2005 09:30:10 -0400
The instructions for default.asp are for a redirecting page--to account for multiple domains on the server using hosts. The ISP created subfolder on the main account for the new doamisn. Those folder would correspond to the FTP directories for those domins and websites.
FP can be used an editor for producing the web page. If FP Server extensions are installed in the server FP can also be uded for publishing and using other online features for the web apges. The web site is referred to as a frontpage web. However, if you use FP web, you should not use FTP because it can screw up the web ste.
For you question, if the websiteis for the domains are fontpage webs, he shoudl be open them as web directly. If cannot, they are not front page webs or he does not have permissions. For frontpage webs, he can also develop the web site on his machine and use frontpage to pulish it. Publshing does more than copying fiels to the site.
....PC
neilr wrote:
Hi,
I'm an experienced website designer but have NEVER used FrontPage. I've always used FTP, SCP to manage the files on the server. A friend who is not a professional website designer, but has always used FrontPage successfully to manage a special interests website has contacted me to see if I can help with a new problem.
His hosting is with 1and1 where he has managed his website for some considerable time using FrontPage - he seems to be competent with FP. Essentially he has just recently registered two new domains and hosted with 1and1 using his existing account.
His 1and1 account currently list his domains in his control panel:
OriginalDom.com Webspace (/.) Ready NewDom1.com Webspace (/upload1) Ready NewDom2.com Webspace (/upload2) Ready
PROBLEM:
The upload instructions provided by 1and1 advise him to create a 'default.asp' file and configure it according to his domains. The example they provide is as follows:
<%EnableSessionState=False host = Request.ServerVariables("HTTP_HOST") if host = "usa-test.com" or host = "www.usa-test.com" then response.redirect("http://usa-test.com/usa-test/index.htm") elseif host = "tranquilhome.com" or host = "www.tranquilhome.com" then response.redirect("http://tranquilhome.com/tranquilhome/index.htm") else response.redirect("http://tranquilhome.com/error.htm") end if %>
How does this map to FP server on his own PC?
I haven't seen what he has done yet but I imagine he has created two new folders under DOC_ROOT in his FP dev environment for each of the new domains (NewDom1 and NewDom2).
So, if I assign as follows:
if host = "NewDom1.com" response.redirect("http://NewDom1.com/")
Would that seem correct?
Also, why the additional folder (/usa-test/) in the 1and example: response.redirect("http://usa-test.com/usa-test/index.htm")
Not having touched FP before, as you can see, I'm more than a bit confused. I haven't visited the guy yet as he is a good drive away and I don't want to charge him more than expenses, so hopefully I can get it sorted for him in as short a time as possible, and in one trip.
Any advice and guidance much appreciated.
Neil
.
- References:
- Prev by Date: Upload settings for multiple domains in 'default.asp'
- Next by Date: Restrict Permission control in FrontPage through "webadmin.htm"
- Previous by thread: Upload settings for multiple domains in 'default.asp'
- Next by thread: Restrict Permission control in FrontPage through "webadmin.htm"
- Index(es):
Relevant Pages
|