I'm currently trying to print out a document path with SSI in Apache. I've managed to get it working, except that I have to hard code in the 'http://' at the beginning. My current code is:
You are currently here: <a href="http://<!--#echo var="HTTP_HOST" --><!--#echo var="REQUEST_URI" -->">http://<!--#echo var="HTTP_HOST" --><!--#echo var="REQUEST_URI" -->url.shtml</a>
The problem is, when I view this document through https, it still says 'http' meaning it can't link to itself.
Is there any way I can do this without hard coding in the 'http://' ? I've looked online, but most examples have done it this way.
Thanks.