adding public content and rewrite rule