only turn rewrite on once
Merge pull request #106 from kriswallsmith/patch-1

only turn rewrite on once