Update r.php

added comments and forced ssl