HTTP Header Examples
Examples of HTTP Headers for HTML
DirectoryIndex index.html ErrorDocument 404 /error.html AddType application/xhtml+xml; charset=UTF-8 html
In this example, the DirectoryIndex
document comes from the directory indicated by the HTTP request URL and the ErrorDocument
comes from the document root directory, due to the leading slash (/
) in that directive. The Content-Type header for any .html documents will have a value of application/xhtml+xml
and the documents will be encoded with UTF-8 character encoding.