Fixed redirects for folders to work when there is or isn't a trailing slash, regardless of http or https.