# .htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On

  # Allow PUT and DELETE requests to be processed by index.php
  RewriteCond %{REQUEST_METHOD} ^(PUT|DELETE)$
  RewriteRule ^(.*)$ $1 [L]
</IfModule>

<IfModule mod_allowmethods.c>
  # If mod_allowmethods is available, explicitly allow PUT/DELETE
  <LimitExcept GET POST HEAD OPTIONS PUT DELETE>
    deny from all
  </LimitExcept>
  <Directory />
    AllowMethods GET POST HEAD OPTIONS PUT DELETE
  </Directory>
</IfModule>
