Correct https rewrite

This should expand correctly