You can make all your internal links be protocol independent by using the following syntax:
<a href="//some/file/on/your/domain.php">link text</a>
instead of
<a href="some/file/on/your/domain.php">link text</a>
the //
will make the link respect whatever protocol the page was loaded over.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…