This is a discussion on Problem with cutsom error pages and addtype in .htaccess within the Apache Web Server forums, part of the Web Server and Related Forums category; I am trying to have custom error pages served using htaccess. This works fine if i just use the errordocument ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to have custom error pages served using htaccess. This
works fine if i just use the errordocument directive. But additionally I want to have my html docs parsed as php, so I have added the AddType directive When i combine these two in my .htaccess file - the custom error pages do not get shown. The .htaccess file I am trying to use is: AddType x-mapp-php3 .php .php3 .htm .html AddType x-mapp-php4 .php .php4 .htm .html ErrorDocument 400 /error.html ErrorDocument 403 /error.html ErrorDocument 404 /error.html ErrorDocument 500 /error.html ErrorDocument 401 /error.html Unfortunately I don't have write access to httpd.conf. Apache/1.3.29 (Unix). |
|
|||
|
Anthony <me@beetroot.plus.com> wrote:
> I am trying to have custom error pages served using htaccess. This > works fine if i just use the errordocument directive. But additionally > I want to have my html docs parsed as php, so I have added the AddType > directive Does Apache have the php modules loaded? if so, you shouldn't add any extra directive in the .htaccess file because it's already in the httpd.conf file. > ErrorDocument 400 /error.html Use a standard .php file. Davide -- | When computers emit smoke, it means they've chosen a new Pope. | Unfortunately, they invariably choose the wrong one and immediately | get condemned to nonfunctionality for heresy. --Anthony DeBoer | |