Hello all. I have a javascript framework running on my site that makes asynchronous requests to a url that contains extraneous path. Apache sends back a 400 bad request error. Here is my error_log information: Sun Aug 12 21:52:51 2012] [error] [client ::1] Could not fetch resource information. [400, #0], referer: https://localhost/rest.php [Sun Aug 12 21:52:51 2012] [error] [client ::1] The URL contains extraneous path components. The resource could not be identified. [400, #0], referer: https://localhost/rest.php The framework -a grid specifically- sends that type of requests from a script called rest.php: DELETE https://localhost/REST/george/george-myData.php/3 AND i want it to redirect to https://localhost/REST/george/george-myData.php?id=3 which is valid my htaccess Rewrite conditions: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_REFERER} https://localhost/rest.php RewriteRule https://localhost/REST/(.*)/(.*)-myData.php/([0-9]+) https://localhost/REST/(.*)/(.*)-myData.php?id=$1 since george is dynamically generated i used (.*) but it doesnt work. Anyone some help?