var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
ErrorDocument in php
One of my client want use a php file for the 404 error code.
I use Cpanel.
I add in his .htaccess file the "ErrorDocument 404 /404.php" line,
but without result.
Then, I add the same line in the httpd.conf file, in his virtualhost section. No result...
Can you help me?
Upload the (404.php) file to the desired folder. (such as /errors/) Add the following line to the .htaccess file ErrorDocument 404 /errors/404.php
Make sure that your directory index have php extension. Also check with the permission of the file. Try to restart apache and check.
Thanks for the help.
But after theses changes, I still have the default 404 error page (white page from IE).
Apache is still searching for the 404.shtml page.
Did you place the .htaccess in the root directory? Also, does the webserver have .hta defined?
Please refer the following URLs. where You will get all steps regarding how to customize 404 Error document file in PHP.
For general information - how to customize error documents using HTML file, please have a look into these URL's.
Thanks for the link.
I added the full path of the 404 error page in the .htaccess file (http://www.domain.com/404.php) and it works fine.
Thanks again for your help.