Hi, I was wondering if it was possible to use PHP to make a 404 error page? It's saved as a .shtml file so it doesn't parse the php coding correctly as of now...
Using PHP in error pages
what if you save it in the root as .php and make a .htaccess file in your root dir with this line in it:
or any other name instead of error404.php
BTW with root I mean public_html.
| Code: |
| ErrorDocument 404 /error404.php |
or any other name instead of error404.php
BTW with root I mean public_html.
Ah perfect! That did the trick. In fact, that was almost too easy, thanks! 
Yeah, it's .htaccess that does redirects 404 errors to the 404 pages. 
