pea_1 Posted June 28, 2007 Share Posted June 28, 2007 Is it possible to detect page errors such as 404 (page not found)? I've searched good but can't find anything, or i'm not looking in the right places. If so, would you be able to detect it even if a htaccess redirects it to an error page? Thanks, Peter Quote Link to comment Share on other sites More sharing options...
kathas Posted June 28, 2007 Share Posted June 28, 2007 what do you mean detect it? What are you using to make the request for that page? If you are using an HTTP request done by PHP you will know by the status code from the response headers ... If you are using a browser well he will read the status code from the response headers and will tell you what happened... There is a special code for redirects... i think it is 302 but i am not sure... could be 301, google it if you really need it... Kathas Quote Link to comment Share on other sites More sharing options...
pea_1 Posted June 28, 2007 Author Share Posted June 28, 2007 ok then. thanks 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.