The WordPress rewrite API is a very advanced topic, and one that is over looked at lot, but it is also exceptionally powerful. This tutorial series by guest author Abid Omar will demonstrate to you how the API works for the default WordPress rewrites (pretty permalinks), and also how to add your own custom rewrite rules. Being able to add your own rewrites, opens a huge door of possibility in what you can do with your plugins.