Strip trailing slashes.
Allow internal URLs to use HTTPS.