I don't know web.config rewrite rules.
"it doesn't work" isn't really helpful if you want help diagnosing. You'll have to be a little more specific.
What, exactly, "doesn't work"? What are you trying? What results do you expect to see? What results do you actually see?
Have you tried a debugging HTTP proxy like fiddler2 to help you diagnose this?