It looks like your using URL-Rewriter to do some more user-friendly url's maybe?
If you gzip compress, apache no longer has access to rewrite the urls as the data is compressed when it leaves php.
You can use ob_start() but you can't set the gzip handler.
Is this software you've written or a script?
Jacob - WebOnce Technologies - 30 Day 100% Satisfaction Guarantee - Over 5 Years Going Strong! Website Hosting, PHP4&5, RoR, MySQL 5.0, Reseller Hosting, Development, and Designs