Fix that makes the media uploads work correctly.

I found an issue while developing that I couldn't get the team avatars to show up. For some reason the flat page url rule was absorbing the media rules and preventing them from working. A change of order seems to have fixed that.