[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] domain auto redirect -- AGAIN
- Subject: [cobalt-users] domain auto redirect -- AGAIN
- From: Tobe Johnson <tobe@xxxxxxxxxxxx>
- Date: Fri Mar 17 00:03:21 2000
I would like to have several domains point to my server and automatically
be forwarded to a specific site. I would prefer to do this without having
to set up each individual domain with all the set-up stuff that occurs
there.
I wrote a script so that, when the 404 Not Found page is accessed, it will
pull the host name from the URI, compare it to a MySQL database and then
redirect depending upon the results. That part works fine.
The problem: I get an "unable to locate server" error message when I try
to access a domain that is pointed to my servers (from network solutions),
but is not yet set up on my servers. I was hoping that it would hit the
404 page and then I could redirect it appropriately without setting it up
on my servers, but unfortunately, that doesn't seem to be the case.
Any comments/help would be appreciated. I tried setting up a PTR record
for it, but since I am using name based hosting, it takes the site to the
first site in my list of sites for that particular IP Address....:-(
Adding an A Record didn't seem to do the trick...
Thanks in advance.
Tobe Johnson
-----