remove query string and hash from base url to build signature