Help With Publishing Issue

  • Thread starter Thread starter scorpion53061
  • Start date Start date
S

scorpion53061

Hi,

I recently switched providers. I was told I could support multiple domains
by using this code

<%@Language=VBScript%>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")
%>
<%
Select Case SiteNameURL
Case "kjmsolutions.com"
%><!-- #Include File="default.asp" --><%

Case "www.sandbaybeachresort.com"
%><!-- #Include
File="sandbaybeachresort/default.asp" --><%

Case "sandbaybeachresort.com"
%><!-- #Include
File="sandbaybeachresort/default.asp" --><%


End Select
%>

WHich is nice but when I publish the web (I do to a new folder called
"sandbaybeachresort" on the new provider the default page works but the
links within (when I link to default2.asp and the link says
http://www.sandbaybaybeachresort.com/default2.asp it reports page not found.
But if I pull up the link in
http://www.kjmsolutions.com/sandbaybeachresort/default2.asp that will work.

In addition none of the include pages are working.

I would appreciate any and all suggestions. They tell me they cant ontrol
how frontpage performs.
 
Try the following instead:

<%
Dim HostURL
HostURL = LCase(Request.ServerVariables("HTTP_HOST"))

If InStr(HostURL, "sandbaybeachresort.com") then
Response.Redirect "sandbaybeachresort/default.asp"
End If
%>

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top