Remove protocol on URLs supporting both http and https.
Remove trailing slashes.