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

I have an apache server that I'd like to configure to behave differently when the request method is OPTIONS. This is a static site so doing it in a scripting language isn't possible. In my case when the request method is OPTIONS I'd like apache to simply return the standard response headers but skip the body altogether. Is such a thing possible via the .htaccess?

share|improve this question
up vote 0 down vote accepted

I achieved this by using mod_rewrite and creating an empty blank.html file:

  RewriteRule ^(.*)$ blank.html [QSA,L]
share|improve this answer

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.