I just tried that and it didn't work. I used the code you provided and I've got a blank php script named, "download.php" in the directory.
What do you mean, "it didn't work." You are going to have to be more specific than that if you want help. Did you get a blank page? 500 Internal Server Error? 404 File not Found Error? What? What did your server access and error logs say?
Originally Posted by aldo
I think your doing it backwards =P
RewriteRule /downloads/$1 ^download.php?hash=$1
At least thats how I do mine...
Right, the first address us the "fake" one and the second is like the "real" one. But it should be:
RewriteRule ^downloads/(.+)$ download.php?hash=$1
or better yet since if the hash is always 32 alphanumeric characters long: