Forum Moderators: phranque
ErrorDocument 404 /404.php
This tells Apache that when it encounters a 404, it will load this file as the text of the 404 message. Note that the path is relative to the DocumentRoot. So, if your DocumentRoot is /home/www/html, then the 404 file needs to be at "/home/www/html/404.php"
In the PHP/HTML file, include a meta-refresh tag:
<META http-equiv="refresh" content="7; URL=http://www.mysite.com/index.php">
You could also make the 404 page your Index page (ie: /index.php), but I'm not sure what the implications of that would be.
There may be better ways to do it as well, with mod_Rewrite and so on.
HTH!
-MM