Portal Home > Knowledgebase > Articles Database > Error page questions
Error page questions
Posted by BORIStheBLADE, 01-28-2012, 01:35 AM |
I want to add a error 500.html page to my wordpress site. I'm sort of learning this as I go, but to have this page display during a server issue I have to input info into the htaccess file right?
The file goes like this.
So I add ErrorDocument 500 /500.html on the bottom of everything right?
|
Posted by linux7802, 01-28-2012, 02:21 AM |
You can create the customized 500.html page in the public_html directory and there is no need to add code in the every page, you can use the following code in the .htaccess file
ErrorDocument 500 /500.html
|
Posted by BORIStheBLADE, 01-28-2012, 10:22 AM |
I have the error page located in the public_html folder already. So the "ErrorDocument 500 /500.htm" can be placed on any line in the .htaccess file?
Thanks
|
Posted by richardhay, 01-28-2012, 11:06 AM |
Yes. Although not completely accurate, think of the .htaccess file as a configuration file. The system simply looks through the file for variables it needs in a specific situation and then uses those variables. So, when it encounters a 500 error, it'll look in .htaccess for instructions as to what to do in that situation.
|
Posted by BORIStheBLADE, 01-28-2012, 11:09 AM |
Thanks for the info. I was just worried about putting it before the existing info or after in the .htaccess file.
|
Add to Favourites Print this Article
Also Read
TinEye? (Views: 484)