Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
AddType application/x-httpd-php .html .htm

I want to know what exactly does the above htaccess code do. Dose it tell the server that html files are php files or inform the browser that .html files are php files.

Who are they talking to browser or server or both . I know that the below code informs the browser to force download files but do they also inform the server

AddType  application/octet-stream  .doc .xls .pdf

Also are htaccess specific to apache or other servers support them too

share|improve this question

Maybe this would help?

or this:

EDIT: And .htaccess files are supported by most server types. Well, any server if they are configured to look for them.

share|improve this answer
Neither lighttpd nor nginx does support .htaccess files. – AlexD Aug 26 '11 at 9:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.