HOME       >>       Web Hosting Support

Error Page Question


NeXDesigns

is it possible to make a .php error page and not .shtml?Or possibly have it use an include on my index page?(my include links are like index.php?page=namegoeshere)any ideas as to how to do either of these?


OpaQue

I think this is possible. You will have to edit the .htaccess file in your root directory ( www ). Please check it.


NeXDesigns

there is nothing there about it.


bjrn

Here's what you could do:In your .htaccess file (which should be in your public_html dir) you can put lines likeErrorDocument 404 /pagenotfound.phpErrorDocument 500 /errors/error500.phpor whatever you want.That would mean that your error pages would be php pages. If I were you I wouldn't make the 500 ones php enabled though. If something goes wrong on the server side, it may very well be php related, and serving your visitors with a blank page, or an error on an error page is hardly elagant :rolleyes:I think you could edit your .htaccess file to parse shtml files as php as well.HTH


NeXDesigns

yeah, the only page i would really use mostly would be the 404 file not found page.Thanks i will try this.EDIT:: Thanks! it works!


X3r0X

Thanks for helping out our member. For that, i give you reputation Lol, thanks for the help and enjoy the rep!


bjrn

Woo! Thanks! I'm glad I could help



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.