Only allow GET request with htaccess?

Solution 1:

You may also want to have a look at the Apache Limit and/or LimitExcept directives. Rewrite rules give you the opportunity to put up a custom error page though.

I believe something like this might work:

<LimitExcept GET HEAD>
  Order Allow,Deny
  Deny from all
</LimitExcept>

Solution 2:

How about this?

> RewriteEngine On
> RewriteCond %{REQUEST_METHOD} !=GET
> RewriteRule ^.*$ /path/to