Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I have a PHP question: How do I make a 404 redirect?
#4
(07-18-2011, 10:45 PM)roperson Wrote:
(07-18-2011, 10:17 PM)Jacob_ Wrote: Create a file called .htaccess in the folder where your website is, and put this line in it:

ErrorDocument 404 /error.php

Didn't work.

This only works on Apache (by far the most popular web server to use with PHP). If you're using IIS, you'll have to do it some other way.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)