auveeb
12-24-2004, 11:10 PM
How do I go about setting global errors?
For example, if a client on my server were to go to a page that didn't exist, they would be redirected to my site's homepage.
dkitchen
12-24-2004, 11:17 PM
Haven't done this for a while, however I think it's under errordocument in your httpd.conf file.
auveeb
01-09-2005, 07:02 PM
Does anybody else have a solution to this?
programmer
01-09-2005, 09:51 PM
In the .htaccess in your public_html directory, place the following
ErrorDocument 404 /
auveeb
01-09-2005, 10:01 PM
This is for a global error, not for me alone.
YUPAPA
01-09-2005, 10:43 PM
You just have to put ErrorDocument 404 globally in your httpd.conf ~
Website Rob
01-10-2005, 02:58 AM
You have Clients paying you money to host "their" Web site and yet, if they have a Visitor that uses a invalid link on "their" Web page you want that Visitor to be redirected to the 404 page of "your" Web site?
If that is what you are asking, that's the wrong type of thinking for a Hoster.
Or maybe I mis-understood the question?
kmacmaster
01-10-2005, 03:38 AM
Originally posted by Website Rob
You have Clients paying you money to host "their" Web site and yet, if they have a Visitor that uses a invalid link on "their" Web page you want that Visitor to be redirected to the 404 page of "your" Web site?
If that is what you are asking, that's the wrong type of thinking for a Hoster.
Or maybe I mis-understood the question?
I agree, in fact, I'm at the other end of the argument. I think it would be better to let the customer choose thier own 404 page. This way they decide how to handle the error.
Most people do not want anyone to know who they are hosting with, your "global 404" would give that away very easily.
Website Rob
01-10-2005, 03:46 AM
We have a taken a pro-active approach whereby, when a new account is created all your basic 400's and a 500 'shtml' page are created automatically for the new Client within their own account.
This has proven to be very effective for us (less garbage in Server logs) and for our Clients (they don't have to worry about creating them). Clients can still customize their Error pages of course, but most go with ones auto-created for them.
auveeb
01-11-2005, 09:51 PM
No, I run a free hosting company. The people over at free hostingtalk are no good.
kmacmaster
01-11-2005, 11:05 PM
Originally posted by auveeb
No, I run a free hosting company. The people over at free hostingtalk are no good.
In that case, make sure the 404 pops over to your home page. ;)
kmacmaster
01-12-2005, 09:53 PM
Originally posted by auveeb
OK
Now How do I do that?
Don't know about linux (also don't know if that's what you are using), but in IIS you can set the global option for a 404 under the custom errors tab on the root server.