PDA

Click to See Complete Forum and Search --> : domain name redirection...


chrismitchell
Aug 28th, 2001, 03:36 AM
I have been trying to think about how to do this for the entire weekend but to no avail....

I have 3 domain names going to the same server all of the sites are stored on... unfortunately they all currently goto the same splash page.. I need a piece of code to be able to recognise which domain has been typed in and for it to load a certain image (the logo for the company) into a space.. To see the site I am doing this for it is : www.mmr-international.com.

Any ideas on how this may be possible?

Cheers for all your help.

JoshT
Aug 28th, 2001, 06:21 AM
I think its the HTTP_HOST CGI variable. If not, use your favorite CGI language to loop thru all available CGI /Environmental variables -- the hostname they requested should show up there somewhere.

chrismitchell
Aug 28th, 2001, 06:52 AM
How do I do that? Does this need to be done Server side? If so should I ask the server person (the guy who looks after the server) to set it up for me?

JoshT
Aug 28th, 2001, 10:38 AM
Yeah, newer versions of IIS or Apache can be configured to host multiple domains. Its part of HTTP 1.1, I think. If you can have your server guy configure it, it's probably better than a code solution.

sebs
Aug 28th, 2001, 10:56 AM
in asp:

Request.ServerVariables("HTTP_REFERER")

try this!!

do a response.write of it(just to test),

try with your 3 different url!!

i'm pretty it will work!!

scoutt
Aug 28th, 2001, 01:54 PM
excuse me if I am a little slow on this but, you have 3 sites on teh same server and they have the same splash screen. so when you goto that splash screen you want to pick what site it is for?


when I click on the link above, is tha tthe splash screen or the next one is the splash screen.

sorry chris but I was a little cornfused :)

chrismitchell
Sep 7th, 2001, 06:41 AM
Thats ok Scoutt.. I had to eventually tell the server guy to do it on IIs on the server as it couldn't be done properly -- or at least I didn't know how to do it. :) Thanks for all your help :)