use appropriate link for ssl or not