added option for rewrite rule on selectors
added for rewrite condition and refer main domain
Merge pull request #40 from pserrano/feature/rewrite

Feature/rewrite