Could you explain us why exactly you've tried the rewrite condition and rule you posted here...I find it hard to see why someone would choose the REQUEST_FILENAME variable (the full local filesystem path to the file or script matching the request) in order to achieve what you're trying to do (rewriting ^/(.*?)\.php$ to /$1 [L])