In order to keep my .htaccess tidy, I am trying to combine these two rules into one using "[or]" (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond)
RewriteCond %{REQUEST_METHOD} DELETE RewriteRule company/(.*) deleteCompany.py?comp_id=$1
RewriteCond %{REQUEST_METHOD} POST RewriteCond %{QUERY_STRING} _method=DELETE RewriteRule company/(.*) deleteCompany.py?comp_id=$1
I've tried this...
RewriteCond %{REQUEST_METHOD} DELETE [or] RewriteCond %{REQUEST_METHOD} POST RewriteCond %{QUERY_STRING} _method=DELETE RewriteRule company/(.*) deleteCompany.py?comp_id=$1
But it fails when I send the HTTP request DELETE /company/12345 HTTP/1.1 .
Thoughts?
[Edited on May 13, 2008 at 5:32 PM. Reason : .]5/13/2008 5:30:46 PM |