Mod rewrite directing correctly, but getting 404

[COLOR=Red]EDIT: Solved. I needed to take out the forwards slash in front of $1.php.[/COLOR]

I have:

RewriteEngine On
RewriteRule ^(.*)/(.*)/?$ /$1.php?a=$2

And am going to:

http://localhost/webapp/test/asdf

But getting

The requested URL /test.php was not found on this server.

Even though test.php is there.


/webapp
.htaccess
test.php

Am I doing something wrong?

Also, going directly to test.php works.