How to properly set URL rewrite rules for a php script to only accept POST
- by stormist
I have a rewrite rule for GET and POST:
<LocationMatch "^/my/script/dir/?$">
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
RewriteRule .* /resources/scripts/storage/admin/list.php
Script POST /resources/scripts/storage/admin/create.php
</LocationMatch>
How would I modify it to only allow POST?