allow slashes at end of urls to be optional