Problem with cutsom error pages and addtype in .htaccess

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-07-2004
Anthony
 
Posts: n/a
Default Problem with cutsom error pages and addtype in .htaccess

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).
  #2 (permalink)  
Old 02-07-2004
Davide Bianchi
 
Posts: n/a
Default Re: Problem with cutsom error pages and addtype in .htaccess

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
|
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0