setup https and add redirect on url with no trailing slash