Jump to content

PHP force 404 Error


Millar

Recommended Posts

If you're trying to create you're own Custom 404 Pages, you'll have to edit the 404.shtml in your Apache or IIS configuration

Most of the time you can just have all you're error pages do the same thing and just send the error message to one of you're PHP scripts along with whatever information you want.
But you have to do that in that 404.shtml file

That is if that's what you're trying to do
Link to comment
Share on other sites

Well, I guess if you're not going to have anything else on the error page other than......the 404

you could just flat out redirect to ajflkjdslfkjsdlkajflakf.html
which I'd assume doesn't exist

but you'd do it through HTML and not a PHP function....meaning
echo out
[quote]
<META http-equiv="refresh" content="0; URL=somerandomarrayofletters.html">[/quote]
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.