phpQuestioner Posted July 29, 2007 Share Posted July 29, 2007 I am not able to get header("HTTP/1.0 404 Not Found"); to work in FireFox. Why Not and Is There A Way Use header("HTTP/1.0 404 Not Found"); for any and all browser (so that it will work)? It works fine in IE, but FireFox just opens the normal php page. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted July 29, 2007 Share Posted July 29, 2007 I believe that Firefox is correct in serving the page whether the 404 header is there or not. Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted July 29, 2007 Author Share Posted July 29, 2007 So basically there is no work around for this; besides using a header("Location: "); redirect - there's no way to ceate a 404 or any other type of error page in FF? Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted July 29, 2007 Share Posted July 29, 2007 on your server, does it allow you to customise your own error pages? either way, you shoudl be ablet to directly link to that file. itll be somewhere on your server www/ directory i think gdlk Quote Link to comment Share on other sites More sharing options...
phpQuestioner Posted July 29, 2007 Author Share Posted July 29, 2007 unfortunately - no my server does not - but I guess I could just create an error page and use header("Location: "); to redirect to it. If FF cannot accommodate the 404 header error; then I guess that is my only option; besides sending person to another website (like google, yahoo, etc.... - something like that; you know....). Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted July 29, 2007 Share Posted July 29, 2007 Opera and Safari doesn't do like you want either. Internet Explorer is the only browser which does that. Are you able to use .htaccess files? Why are you sending the header? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.