[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Tricky alias redirection
- Subject: [cobalt-users] Tricky alias redirection
- From: "Roy A. Urick" <rurick@xxxxxxxxxxxxxxxx>
- Date: Thu Aug 15 23:58:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
Ok, heres the scoop... I have a client that has two domain names... one big
and nasty (long.com), one short and easy to type (short.com). He wants to
use long.com for everyday use (business cards, etc) but give out the other
to certain clients that he wants them to not be encumbered by the long drawn
out typing.
Now... here is the kicker. He wants those clients that use long.com to get
long.com/index.html, and the short.com users to get redirected to
long.com/index2.html so he can track the useage, to determine how many users
of each type (long and short) are hitting his site. We arent concerned about
the rewrite, and that they might notice they are being redirected to another
site as the short.com domain is the long.com company's initials.
Currently we have two sites set up on the server. short.com and long.com.
short.com currently contains a meta refresh that points back to
long.com/index2.html. We want to reduce that down to a single virtual
domain, adding short.com as an alias within the site setup. We cant rely on
the end users to type out http://short.com/index2.html, as we need to make
this relatively idiot proof.
The reason for this madness is due to the nature of the site, it may
eventually need to be moved from my little blue box due to potentially high
traffic loads and we need to design it so it wont take up two sites at a
hosting provider that isnt as understanding as we are.
Is there an easy way within the virtual hosts section of httpd.conf to do
that redirection, or are we stuck with two separate virtual domains?
Thanks