I am using this rule:
RewriteRule !^(.*?/.*|.*?\.(?:php|html)$)$ headers.php?a=$1 [L]
(based on the great contributions on http://stackoverflow.com/questions/3345747/regex-match-this-or-that)
It rewrites to headers.php when I type localhost/foo but the a variable is empty instead of foo (I checked with var_dump($_REQUEST))
Any idea why? I tried using
RewriteCond  %{REQUEST_URI}  !headers
but it wasn't that.
Thank you!