Forum Moderators: phranque

Message Too Old, No Replies

.htaccess "Header append" causes a 505 error

Could not append header in htacces

         

iProgram

2:58 pm on Oct 12, 2004 (gmt 0)

10+ Year Member



I want to use Header directive to append a P3P header in .htaccess:

Header append P3P: 'CP="NOI CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT"'

And then all pages become to 505 Internal Server Error page. (I got the same error when the first time I use mod_rewrite...)

jdMorgan

4:13 pm on Oct 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Error 505? - That's an HTTP Version Not Supported error.

Is mod_headers installed and loaded? Do you have "permission" for your account to use it?

Have you tried Header set, rather than append? Header append is only needed if you want to add parameters to a pre-existing header of the same name (P3P in this case).

The mod_headers documentation specifies that the header value should be enclosed in double quotes if it contains spaces. I doubt that this is the problem, but you could try testing a one-word P3P header without quotes, just to see if that changes the error response.

Of all the possibilities, I'd guess that you don't currently have permission to use mod_headers or mod_rewrite, and that this is a hosting problem.

Jim

iProgram

1:48 am on Oct 13, 2004 (gmt 0)

10+ Year Member



Yes you are right. mod_header is not enabled on this server. It now works. 500 error, not 505:)