enable rest
Merge pull request #1385 from paglias/enable-rest-rewrite

Enable resting on rewrite