First, very nice work here Brett, really.
Now, what's on my mind.
I have a site that has information on artists, records and songs.
There are three scripts to access such information: artists.php?id=x, album.php?id=x and track.php?id=x
What I would like to have if possible (or the appropiate combination with PHP), a rewrite rule that will 1) when a user enters http://www.ritmopolis.com/myartist, the name of myartist is searched in the database and an id is returned, then sent to the artist.php?id=x and the user sees in the browser http://www.ritmopolis.com/myartist
2) searching for an album would have a similar effect: http://www.ritmopolis.com/myartist/thealbum, the name myartist should be searched and contained in something like aid=x, then the album thealbum should be searched where artist=aid and contained in x, then sent to album.php?id=x and the user should see http://www.ritmopolis.com/myartist/thealbum
3) the same drill for a song...
Can this be done?
So far, I intercept error 404 (because /myartist or /myartist/thealbum don't exist) then search for the text in the database and then use header("location: artist.php?id=$x"), and it works, but I would like to see http://www.ritmopolis.com/myartist instead of http://www.ritmopolis.com/artist.php?id=x
Thanks in advance!