Re: [PHP] Sorry - Way OT but I need help
RE: [PHP] Sorry - Way OT but I need helpIf you place something like: ErrorDocument 404 /errors/404.php inside your .htaccess file and then create a file called 404.php in the errors directory it should work. You can also echo plain text to he screen using ErrorDocument 404 "Error Message Goes Here." HTH Andy Woolley www.databasewatch.com - Original Message - From: Boget, Chris To: 'Andy Woolley' ; [EMAIL PROTECTED] Sent: Monday, April 09, 2001 7:57 PM Subject: RE: [PHP] Sorry - Way OT but I need help I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. Does someone have an example of how to do this within .htaccess? I've tried everything and all I ever get is an Internal Server Error when the .htaccess file is in place... :/ Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sorry - Way OT but I need help
Your custom 404 is probably less than 512 bytes. This causes IE to display its own inbuilt error page (don't ask me why :-) Push it over that and all should be well. HTH Jon -Original Message- From: Andy Woolley [mailto:[EMAIL PROTECTED]] Sent: 09 April 2001 18:00 To: [EMAIL PROTECTED] Subject: [PHP] Sorry - Way OT but I need help Guys, I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. Kind Regards Andy Woolley www.databasewatch.com ps if you want to test it try www.databasewatch.com/noexist ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sorry - Way OT but I need help
Jon, your a star...Thanks alot How rediculous is that of MS to do it that way. I really did try and find out what was going on and knew it had to be something simple, but I never expected it be that stupid. Thanks Again Andy Woolley www.databasewatch.com ps. If you ever visit the Midlands, I'll by you a beer :-) - Original Message - From: "Jon Haworth" [EMAIL PROTECTED] To: "'Andy Woolley'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, April 09, 2001 6:09 PM Subject: RE: [PHP] Sorry - Way OT but I need help Your custom 404 is probably less than 512 bytes. This causes IE to display its own inbuilt error page (don't ask me why :-) Push it over that and all should be well. HTH Jon -Original Message- From: Andy Woolley [mailto:[EMAIL PROTECTED]] Sent: 09 April 2001 18:00 To: [EMAIL PROTECTED] Subject: [PHP] Sorry - Way OT but I need help Guys, I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. Kind Regards Andy Woolley www.databasewatch.com ps if you want to test it try www.databasewatch.com/noexist ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sorry - Way OT but I need help
I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. Does someone have an example of how to do this within .htaccess? I've tried everything and all I ever get is an Internal Server Error when the .htaccess file is in place... :/ Chris
RE: [PHP] Sorry - Way OT but I need help
-Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 1:57 PM To: 'Andy Woolley'; [EMAIL PROTECTED] Subject: RE: [PHP] Sorry - Way OT but I need help I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. MSIE will always (and there doesn't seem to be any way around it) display its own error page if the error page returned by the server is smaller than (if I'm remembering correctly) 512 bytes. (The theory, presumably, being that if you're not going to offer at least half a kilobyte back, then the browser's built-in error page is probably more useful.) Does someone have an example of how to do this within .htaccess? I've tried everything and all I ever get is an Internal Server Error when the .htaccess file is in place... :/ I've found that my web server's error logs usually say interesting and useful things when i get an "Internal Server Error" message. Any clues there? --- Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University ||-- Henry Kissinger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sorry - Way OT but I need help
Check out my site, I just did the same thing. http://www.lesneste.com I used to have a bunch of personal info out there for the world to see, but I decided it was invitation to identity theft so I put it behind a password. Now, to get access, you have to reveal an email address to which your password will be mailed, which I think is a reasonable tradeoff. I decided I wanted to stay with HTML files as much as possible so I could develop most of my pages on my local hard drive without an HTTP server in the loop. This mandated no sessions, just .htaccess. I use one PHP page that lets users request their password. I found something bizarre (unexpected in a way that makes no sense to me) with Apache ErrorDocuments, namely, that you can specify an ErrorDocument in another directory besides the one containing the file that generated the error, and that ErrorDocument will be loaded, but all relative URLs within that page will be resolved relative to the original directory (the one containing the .htaccess file). My solution to this was to use absolute URLs instead of relative in the ErrorDocument for things like specifying IMGs. I don't like using absolute URLs, but it worked. Here's the .htaccess that gets the job done. Notice I care about a 401 (authorization) and not 404. = AuthUserFile /yourpathhere/.htpasswd AuthGroupFile /dev/null AuthName "Personal" AuthType Basic ErrorDocument 401 /requestpwd.php?func=introsecn=photos Limit GET POST require valid-user /Limit === Hope that helps. At 01:57 PM 4/9/2001 -0500, Boget, Chris wrote: I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. Does someone have an example of how to do this within .htaccess? I've tried everything and all I ever get is an Internal Server Error when the .htaccess file is in place... :/ Chris Les Neste 678-778-0382 http://www.lesneste.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]