Jump to content

Detecting 404 aqnd other page errors on a remote website


pea_1

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.