my free webhost dont offer custom 404 error page and they disabled the function of redirecting error page using htaccess is it possible to have a custom 404 error page embedding it to php? thanks!
my free webhost dont offer custom 404 error page and they disabled the function of redirecting error page using htaccess is it possible to have a custom 404 error page embedding it to php? thanks!
No, you need access to a working .htaccess file or the server's httpd.conf file.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
how do you create a custom error page if you have access to a .htaccess file??
hi
it is basically a serverfile which we don't use very often.
Regards
Chronis Tsempelis
Marketraise Corp.
Use the ErrorDocument directive:Originally Posted by spider1405
  ErrorDocument error-code document
where error-code is the response status code to be handled (404, 410, etc.), and document is either a quoted string or a URL (absolute, or absolute path) to the document to be returned.
The Apache documentation for the ErrorDocument directive contains more information and a few examples.
Mike
Bookmarks