Forum Moderators: open
I found this code and it seems to be working just like I need it to:
<% If Request.ServerVariables("SERVER_PORT")=80 Then %>
I display my non-SSL code here
<% Else %>
I display my SSL code here
<% End If %>
Is this the best/right way to go about this? Is there a better way then calling which port the server is running on? Although my above code is working I just want to make sure I'm using it correctly and it's the best way to accomplish what I need.