Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: open
I could use the default 404 error page but I somehow dont want to let the traffic go down the drain, there are still some sites linking to pages that I dont longer have on my site but I can still use those surfers so I dont want to dump them unless it is really neccessary.
Any help is appreaciated.
Custom 404's are fine as long as the response code sent in the server headers is correctly identifying it as a 404 error.
I agree 100% - and if anyone doesn't know - there is a handy little server header checker if you click at the top of this page and look for "control panel". Listed on the right hand side at the bottom under plug ins - server headers - or you could just click on:
Sometimes there are secret messages - like for linux.com and a few others I have seen (but can't seem to remember off hand).
I cannot use that because it does not send a UA, and I give 403s to no UA because they are trouble more often than not, and even if they are a real person, they are being silly to change their UA and I don't have time to mess with them anyway.
Why does it not give a UA of like WEBMW_Agent or something?
1) There are plenty of other versions of this type of tool on the net
2) I have always been a proponent of NOT blocking no UA as:
a) You'll never know when you need it
b) Those doing it for an EVIL purpose - will have no problem faking another.
However, I believe if I am not mistaken, Brett does like the idea of blocking no ua - so this seems a little odd...
I don't understand what you mean.
>b) Those doing it for an EVIL purpose - will have no problem faking another
I cannot argue with that.
I have a theory that cuts down on our software support problem. In order to reduce the number of support calls, etc. we try to get computer savvy people only ordering our software. If some end user changes their UA, they clearly don't understand what they are used for by web masters. Like knowing what level of compatibility a page should conform to for most of their visitors, etc. I cannot think of one valid reason to change the UA of a browser that is not doing something funny, and I don't mean ha, ha. So I have to reckon that these type of people will generate many more support calls, etc. than others because they know just enough to be dangerous.
>1) There are plenty of other versions of this type of tool on the net
Got the addy of any of them off hand? You can sticky mail me with them if you wouldn't mind.
I don't understand what you mean.
Well, not to be a smart ass, but you needed it - and it wasn't there - I guess I should have said "you'll never know when you shouldn't have it" as that would make more sense :)
So I have to reckon that these type of people will generate many more support calls, etc. than others because they know just enough to be dangerous.
I think you are right there - I used to work at a TV/VCR shop and we would get all sorts of problems (like the guy that sprayed wd-40 inside the door of his VCR to grease things up) from people that thought they knew what they were doing.
Some people might change it for privacy reasons, but you are probably right - If I had to do software support - I would rather have 100 calls from people that didn't change their UA - than people that did.
Got the addy of any of them off hand?
Sorry I don't - I know I have seen them before though.
If you're running Apache with support for directory based .htaccess, the only thing you need to do is add a single line entry in your .htaccess file (located at your web's root)
ErrorDocument 404 /my_error_page.html
And that's it. Make sure you are using a local path for your custom 404 page and not a full URL (starting with [),...] otherwise you won't return the right header.
If you want dedicated pages for other type of 400/500 errors, simply add a line for each of them (changing the 404 and filename of course)
ErrorDocument 403 /my_forbidden_page.html
all you need:
.htaccess file defining your (php) script as 404 error handler,
redirect/error script that knows old pages (array),
hooks in whatever is doling out content on the site for a message to visitor (optional, i guess)
This may be a silly question, but I have never had any success with a custom 403 page. It would seem to me that if they are 403ed in the .htaccess, how could they fetch a 403.html file unless you put it in a subdirectory that is at least one level down from where they got the 403? Does that make sense an is that possible?
there are still some sites linking to pages that I dont longer have on my site but I can still use those surfers so I dont want to dump them unless it is really neccessary.
Why not use a 301 redirect for those pages, so you can control the pages the user will end up? We have pages the have changed, but people have bookmarked and this helps solve that problem.
Just my 2 cents :)
As for those that ask why I would even need to use a custom 404 page : in my industry it is common to build some pages and delete them after certain time, and in some cases links to these deleted pages are stuck on someones sites so these people are still sending me a few hits daily, so I just redirect them to an relevant advertisement page and thats it.