Sagewire Logo

Multiple domain to 1 website

3 Message(s) by 3 Author(s) originally posted in cold fusion


From: ultrakit Date:   Monday, November 06, 2006
Hi everyone,
I'm a newbi to ColdFusion and I've a project to work on, any help from you
would be greatly appreciated.

My scenario is I want to create 1 application with 1 hosting plan that
can be use by different domain users. So let say I've the
application built on www.main.com. I then have other domains setup:
www.user1.com, www.user2.com, www.user3.com, etc. I want them to
redirect to www.main.com. My first thought is to have all the other
domains point to the index.CFM of main.com, then the index.CFM on
main.com will be a "check" page where I check what HTTP address was
being passed and then I can assign the userID to main, ie:
www.main.com?userID=1.

Since this is just my assumptions, I'd like to know:

1. is it even possible to grab the HTTP address and redirect it from
the user page to main so that I know which domain is being typed in?

2. if Question 1 is possible, any way of doing the redirect without
changing the address on the brower's address bar? (ie, ppl won't
know they have been redirect?)

Thank you in advance!!!!


From: CF Monkey Date:   Tuesday, November 07, 2006
wrote in message:
Hi everyone,
I'm a newbi to ColdFusion and I've a project to work on, any help from you
would be greatly appreciated.
My scenario is I want to create 1 application with 1 hosting plan that
can be use by different domain users. So let say I've the
application built on www.main.com. I then have other domains setup:
www.user1.com, www.user2.com, www.user3.com, etc. I want them to
redirect to www.main.com. My first thought is to have all the other
domains point to the index.CFM of main.com, then the index.CFM on
main.com will be a "check" page where I check what HTTP address was
being passed and then I can assign the userID to main, ie:
www.main.com?userID=1.
Since this is just my assumptions, I'd like to know:
1. is it even possible to grab the HTTP address and redirect it from
the user page to main so that I know which domain is being typed in?
2. if Question 1 is possible, any way of doing the redirect without
changing the address on the brower's address bar? (ie, ppl won't
know they have been redirect?)
Thank you in advance!!!!



It sounds like what you want is something like this:

<CFIF cgi.server_name EQ "www.user1.com">
<CFLOCATION url="http://www.main.com?userID=1" addtoken="no">
</CFIF>


From: Joe Zack - CFHow.com Date:   Sunday, November 19, 2006
if you do the CFLOCATION like that, then you will lose the original
domain, and besides google search engies REALLY hate when sites bounce
around like that, but then again google does not like duplicate content
on different domains, but anyhow...

what you can do is have all your domains point to one address in IIS,
Apache,etc if you're doing it on your own, or whatever domain service
you're using (GoDaddy etc).

Then in your application file, you can do something like this

<CFSET REQUEST.Root = "http://#CGI.server_name#">

and then just make sure to never hard code any site names anywhere,
wrote in message:
wrote in message:
> Hi everyone,
> I'm a newbi to ColdFusion and I've a project to work on, any help from you
>'d be greatly appreciated.
>
> My scenario is I want to create 1 application with 1 hosting plan that
> can be use by different domain users. So let say I've the
> application built on www.main.com. I then have other domains setup:
> www.user1.com, www.user2.com, www.user3.com, etc. I want them to
> redirect to www.main.com. My first thought is to have all the other
> domains point to the index.CFM of main.com, then the index.CFM on
> main.com will be a "check" page where I check what HTTP address was
> being passed and then I can assign the userID to main, ie:
> www.main.com?userID=1.
>
> Since this is just my assumptions, I'd like to know:
>
> 1. is it even possible to grab the HTTP address and redirect it from
> the user page to main so that I know which domain is being typed in?
>
> 2. if Question 1 is possible, any way of doing the redirect without
> changing the address on the brower's address bar? (ie, ppl won't
> know they have been redirect?)
>
> Thank you in advance!!!!
It sounds like what you want is something like this:
<CFIF cgi.server_name EQ "www.user1.com">
<CFLOCATION url="http://www.main.com?userID=1" addtoken="no">
</CFIF>






Next Message: CF SSH custom tag?


Blogs related to Multiple domain to 1 website

Multiple website domains- Duplicate Content
Multiple website domains—what’s good, what’s bad and what can really get you in trouble with the engines. ... If you already own multiple domains, and you want to see a return on this investment, ... NET, PHP, and Cold Fusion: ...

Sandlizardz.com Web hosting starting at $1.95 a month!
Yahoo Web Hosting - Need a place to host your new web site' Why not give ... Cheap Webhosting ... cheap domain registration with webhosting. web site ... offers a wide range of webhosting solutions Coldfusion, Windows 2003 and Linux . ...

Linux Web Hosting
The Linux Web Hosting is a single-source solution for all of your website hosting needs. ... User friendly Control Panel, FTP, FrontPage access, multiple email accounts. ... windows and linux hosting, asp and coldfusion web hosting. ...

STRANGWAY
austin texas multiple listing service mental health nursing jobs in new zealand ... bandwidth domain registration cheap web site hosting service credit advice ... cold fusion cfexecute no results 911 security breach video ...

Resources.
Our web site contains graphic design books, art supplies, ... database driven website solutions, ecommerce software using ColdFusion, ASP, PHP, Flash. ... We also provides multiple domain hosting solutions with unlimited features under ...

How to Choose a Right Web Hosting Service?
a) Server platform and hardware requirementsIf you plan to set up a website that uses programming environments such as Active Server Pages (ASP), Visual Basic scripts, Cold Fusion or Microsoft Access or Microsoft SQL database, ...


Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional