adding mod rewrite logic