Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.