change request url from localhost to actual server path