So I've been playing with rewrite for awhile, and I can't get it.
Basically, when a user visits http://mydomain.com/images/username.png I want it to actually display the results of http://mydomain.com/stats.php?user=username
This was what I had before I finally gave up:
rewrite "/images/([a-zA-Z0-9_-]+).png" /home/wwwroot/stats.php?user=$1;
Can anyone tell me what I'm doing wrong?