I am using the below regex to add a trailing slash to any url that doesn't have a railing slash or ends ends with ..
rewrite ^([^.]*[^/])$ $1/ permanent;
This works fine for http, but when I use https it doesn't. I can't work out why? Can you?