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?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community