[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Domain redirect



At 6/19/01 11:55 PM -0400, you wrote:
> What if i do NOT want to create a virtual
> site for this specific domain record? Is there a way to do it?

Well it depends on where you're sending the requests. If you're
sending them to a specific IP, you can do this with your DNS 'A'
record entries.
But if you want to send it to something like a Geocities URL, you'd be
better off making a virtual site (one meg will do) and doing a
redirect with either frames or an .htaccess file.

Hey Carrie...

You know this stuff better than I do, but: why not just use the "Redirect" directive in Apache? For example, whenever I have domain.com/net/org (all three), the first gets a virtual site and the other two get hand-added things in httpd.conf like:

<VirtualHost www.domain.net>
        DomainAlias     domain.net
        DomainAdmin     postmaster@xxxxxxxxxx
        Redirect        permanent http://www.domain.com
</VirtualHost>

and I'm done. Is nice enough to rewrite the address window while it's at it so the user has a chance to notice that he should always be going to domain.com anyway.

Note to anyone: THOSE ARE NOT EXACT TEXTS AND PROBABLY WILL NOT WORK. It's vaguely what I remember, although I can go get the exact text if someone wants/needs it.


--
Rodolfo J. Paiz
rpaiz@xxxxxxxxxxxxxx