fix deployment path and url rewrite