change method used to remove '?' from URL's