Disguising the URL

2002-06-07 Thread Thane Sherrington

I have a site using subdomains, with each subdomain in it's own 
subdirectory.  The main domain is in it's own dir as well.  Is there a way 
to make the URL show up as www.domain.com rather than www.domain.com/domain?

T

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Philip Arnold - ASP

 I have a site using subdomains, with each subdomain in it's own
 subdirectory.  The main domain is in it's own dir as well.
 Is there a way to make the URL show up as www.domain.com rather
 than www.domain.com/domain?

Frames?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Adrian Lynch

You could run everything through one page a la fusebox, but you'd be left
with www.domain.com/index.cfm and then whatever url vars you need, not as
tidy as the frames way

-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2002 15:52
To: CF-Talk
Subject: RE: Disguising the URL


 I have a site using subdomains, with each subdomain in it's own
 subdirectory.  The main domain is in it's own dir as well.
 Is there a way to make the URL show up as www.domain.com rather
 than www.domain.com/domain?

Frames?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Ian Tait

Eh?

Apache - Virtualhost directive in httpd.conf
IIS - create a virtual site and point it at whatever dir you like...

Or am I missing some vital piece of info? :-)

Ian

-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2002 15:52
To: CF-Talk
Subject: RE: Disguising the URL


 I have a site using subdomains, with each subdomain in it's own
 subdirectory.  The main domain is in it's own dir as well.
 Is there a way to make the URL show up as www.domain.com rather
 than www.domain.com/domain?

Frames?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Philip Arnold - ASP

 Eh?

 Apache - Virtualhost directive in httpd.conf
 IIS - create a virtual site and point it at whatever dir you like...

 Or am I missing some vital piece of info? :-)

Form the way I read the original request, he wanted anyone who typed in
www.domain.com/domain to only see www.domain.com in the URL, keeping
www.domain.com as a separate entity as well

How can you do this with virtual sites?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Ian Tait

Well...

Are the sites being accessed as www.domain.com, www.sub1.domain.com etc,
with each subdomain is in its own directory,  if that is the question - then
virtual hosts are the way, no?

Ian

I have a site using subdomains, with each subdomain in it's own 
subdirectory.  The main domain is in it's own dir as well.  Is there a way 
to make the URL show up as www.domain.com rather than
www.domain.com/domain?

-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2002 16:44
To: CF-Talk
Subject: RE: Disguising the URL


 Eh?

 Apache - Virtualhost directive in httpd.conf
 IIS - create a virtual site and point it at whatever dir you like...

 Or am I missing some vital piece of info? :-)

Form the way I read the original request, he wanted anyone who typed in
www.domain.com/domain to only see www.domain.com in the URL, keeping
www.domain.com as a separate entity as well

How can you do this with virtual sites?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**



__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Thane Sherrington

At 05:09 PM 6/7/02 +0100, Ian Tait wrote:
Well...

Are the sites being accessed as www.domain.com, www.sub1.domain.com etc,
with each subdomain is in its own directory,  if that is the question - then
virtual hosts are the way, no?

They are being accessed this way:

www.domain.com (shows as www.domain.com/domainname)
subdomain1.domain.com (shows as www.domain.com/subdomain1)
etc.

Each domain is in a folder.  So the tree looks like this:

/domain
/subdomain1
/subdomain2

Some are off the main folder:
/domain/subdomain3

etc.

T

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Eric Dawson

I randomly cut'n'paste some code that might help. I use similar code to 
determine the site to display based on URL. Not sure if this helps. (I have 
a create site engine - that allows the user to map URLs to their content. 
one website on IIS - that is dynamically generated based on the URL.)

What web server are you using? You could create a separate website for each 
subdomain.

mindless thoughts It might be easiest to create a switch in the site root 
that checks for which folder to display - using the http_host variable.

I should read the rest of the threads...

but here is some code anyway(in application.cfm):
cfset site = CGI.HTTP_HOST

cfquery name=SiteDetails datasource=dsn
  SELECT
 Site.SiteID,
 Site.Name,
 Site.Description,
 Site.ConfigurationWDDX,
 xrSiteURL.SiteURL
  FROM Site
  INNER JOIN xrSiteURL
 ON Site.SiteID = xrSiteURL.SiteID
  where xrSiteURL.SiteURL = '#site#'
/cfquery

HTH
Eric

From: Philip Arnold - ASP [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: Disguising the URL
Date: Fri, 7 Jun 2002 15:51:31 +0100

  I have a site using subdomains, with each subdomain in it's own
  subdirectory.  The main domain is in it's own dir as well.
  Is there a way to make the URL show up as www.domain.com rather
  than www.domain.com/domain?

Frames?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911



__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Eric Dawson

in my config. I map an IP to an application that serves an undefined amount 
of sites. I create one IIS site, filtering on just IP address.

All domains mapped to that IP address are processed by the same 
application.cfm, index.cfm page. In the application.cfm I parse the 
http_host (not sure when and where it is included in the browser information 
there is a legacy browser issue with this technique but it is possible to 
work around.) and from that information I generate the particular site.

I control everything on the site - so it is easy for me - but - if I was to 
allow them to publish their own HTML pages - well hmmm. i have crazy notions 
on how to make it work - but I guessing you can do something straight 
forward which is simpler.

Summary.
If you have a limited number of subdomains - just create a new website for 
each (virtual domain). If you want to automatically generate subdomains for 
a huge amount of subdomains - then IMO you are better off creating one site 
engine that parses the domain for content to include.

Eric

From: Ian Tait [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: Disguising the URL
Date: Fri, 7 Jun 2002 17:09:59 +0100

Well...

Are the sites being accessed as www.domain.com, www.sub1.domain.com etc,
with each subdomain is in its own directory,  if that is the question - then
virtual hosts are the way, no?

Ian

I have a site using subdomains, with each subdomain in it's own
subdirectory.  The main domain is in it's own dir as well.  Is there a way
to make the URL show up as www.domain.com rather than
www.domain.com/domain?

-Original Message-
From: Philip Arnold - ASP [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2002 16:44
To: CF-Talk
Subject: RE: Disguising the URL


  Eh?
 
  Apache - Virtualhost directive in httpd.conf
  IIS - create a virtual site and point it at whatever dir you like...
 
  Or am I missing some vital piece of info? :-)

Form the way I read the original request, he wanted anyone who typed in
www.domain.com/domain to only see www.domain.com in the URL, keeping
www.domain.com as a separate entity as well

How can you do this with virtual sites?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**




__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Disguising the URL

2002-06-07 Thread Eric Dawson

you could map all domains and subdomains to the website.
in the root page - check for domain and redirect to the appropriate folder.

www.domain.com
www.sub1.domain.com/sub1/
www.sub2.domain.com/sub2/

ie if you request
www.sub1.domain.com/pageA.cfm
the root application.cfm catches the subdomain and redirects to
www.sub1.domain.com/sub1/pageA.html

(I remember some systems like this a couple years back).

If the browser you are using does not include the http_host information.
www.sub1.domain.com/sub1/pageA.html still works.
but your 404 page might have a list of available subdomains.

Eric

From: Thane Sherrington [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: RE: Disguising the URL
Date: Fri, 07 Jun 2002 13:38:21 -0300

At 05:09 PM 6/7/02 +0100, Ian Tait wrote:
 Well...
 
 Are the sites being accessed as www.domain.com, www.sub1.domain.com etc,
 with each subdomain is in its own directory,  if that is the question - 
then
 virtual hosts are the way, no?

They are being accessed this way:

www.domain.com (shows as www.domain.com/domainname)
subdomain1.domain.com (shows as www.domain.com/subdomain1)
etc.

Each domain is in a folder.  So the tree looks like this:

/domain
/subdomain1
/subdomain2

Some are off the main folder:
/domain/subdomain3

etc.

T


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists