Multiple sites on one account

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hi,

Does anyone know how I can host other web sites on my
domain name?

Say I own www.thingumy.com and want to be able to host my
parents site www.hithere.com on my account.

How do i do that?

I've been told I need an index page in the root directory
which redirects people looking for either site to a
subfolder where the actual pages are.


so its like:
http:\\www.thingumy.com:\
Root\index.htm (linking to thingumy.com & hithere.com)
Root\thingumy\index.htm,page1,page2,page3
Root\hithere\index.htm,page1,page2,page3

Setting up the folder structure is no problem but I don't
know how to do the redirect part and how do i make it so
www.hithere.com doesn't show up as
www.thingumy.com\hithere\index.htm but actualy shows up as
www.hithere.com (and the same with thingumy)
Help! Please!


How do I do that?
 
Hi,
if your host allows this (not all do) they would surely have instructions on
how to do it. Have you asked or checked out their support pages?

It's easy enough to do but depends on your host supporting and also the
server side language they support

Jon
Microsoft MVP - FP
 
Thank goodness there's a person out there, the help files are no help at all on this.

My host don't have a problem with me doing it. it was them who told me the small ammount about it I do know. They said to make an asp index page which would then rdirect to the other sites which I should put in sub folders. They aren't really frontpage experts though so couldn't tell me how to do this. I managed to get a simple redirect going using the refresh command in page properties>custom>system variables when experimenting offline but obviously this only works with one site. Also I do don't really understand how the DNS name resolves to the filename when doing this with multiple sites

Grateful for any help

Mark
 
This really is not a FP issue. Basically all you need to do is create subwebs for each domain, then
have you host point the domain name to your IP address, then in you main default.asp page you would
add the following script before the open HTML tag:

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

If InStr(HostURL, "domainname1.com") then
Response.Redirect "/subwebname1"
End If

If InStr(HostURL, "domainname2.com") then
Response.Redirect "/subwebname2"
End If
%>

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

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


Mark said:
Thank goodness there's a person out there, the help files are no help at all on this.

My host don't have a problem with me doing it. it was them who told me the small ammount about it
I do know. They said to make an asp index page which would then rdirect to the other sites which I
should put in sub folders. They aren't really frontpage experts though so couldn't tell me how to
do this. I managed to get a simple redirect going using the refresh command in page
properties>custom>system variables when experimenting offline but obviously this only works with
one site. Also I do don't really understand how the DNS name resolves to the filename when doing
this with multiple sites.
 
Hi,
this isnt a FrontPage issue so the help files wont "help" Lets say you have
2 domains domaina and domainb first set up a folder structure like this

/root
/domaina
/domainb
Put all your content for www.domaina.com in the domaina folder and all your
content for www.domainb.com in the domainb folder. Now in your root
directory place a default.asp file with this code
<%
strHost = lcase(request.servervariables("SERVER_NAME"))
if instr(strHost, "domaina.com") > 0 then
response.redirect "/domaina/default.asp"
else
response.redirect "/domainb/default.asp"
end if
%>

All the default.asp does is catch the domain the user requested and
redirects to the correct folder - obviously you'd need to adapt this to suit
but it should get you started

Jon
Microsoft MVP - FP
 
Note: Users will see the following URL format for each of these domains:

http://www.domainname1.com/subwebname1/

But the above is the easiest solution to implement, a more complicated solution the eliminate the
issue is to combine the home page for each domain into default.asp then use ASP to display the
correct section of default.asp (with unique navigation for each section) depending on the requested
domain.

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

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Find a host that will allow pointing domains to subdirectories in your root. (your own domain should point to a s/d too
Your domain name will not show in the address bar when other domains are accessed.
 

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