eSupun
New Member
Dear fellow members of FWS,
I have some issue for putting error pages in my cPanel server. Maybe I have gone all the way wrong. If so, please point me.
Today, I designed a error page to handle error documents appear on my web server. I don't allow custom error pages to my users. So I thought to create a good design and put it on every error page in all the websites I host. But I thought it's so hard to create each error document with different HTML pages. So I created a PHP file and posted the error code via GET method to that PHP file. And edited the "errordocument.conf" in the Apache directory(.../apache/conf/includes) like following.
I have disabled the "Custom Error Pages" feature on feature manager.
I have this custom error page PHP file in that directory.(Apache includes dir) Then restarted the server. But I see the regular Error document even now.
My concern is, why this is happening? Please give me a rough idea what is the reason for this. If I've missed some information you need to know, please ask in this thread.
Thank you and I really appreciate your comments.
Regards.
P.S. Maybe I've stated all the things mixed. Sorry about that. I am totally confused because of this.
I have some issue for putting error pages in my cPanel server. Maybe I have gone all the way wrong. If so, please point me.
Today, I designed a error page to handle error documents appear on my web server. I don't allow custom error pages to my users. So I thought to create a good design and put it on every error page in all the websites I host. But I thought it's so hard to create each error document with different HTML pages. So I created a PHP file and posted the error code via GET method to that PHP file. And edited the "errordocument.conf" in the Apache directory(.../apache/conf/includes) like following.
Code:
ErrorDocument 424 /error.php?424
I have disabled the "Custom Error Pages" feature on feature manager.
I have this custom error page PHP file in that directory.(Apache includes dir) Then restarted the server. But I see the regular Error document even now.
My concern is, why this is happening? Please give me a rough idea what is the reason for this. If I've missed some information you need to know, please ask in this thread.
Thank you and I really appreciate your comments.
Regards.
P.S. Maybe I've stated all the things mixed. Sorry about that. I am totally confused because of this.