Update url.php

HTTPS detection bugfix