added rewrite url, fix css, img, and js link after adding rewrite url