Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSL Certificate

Status
Not open for further replies.

Siilver

IS-IT--Management
Dec 2, 2002
69
0
0
CA
Hello Everyone,
I have installed SSL on 2 of my servers. When i manually type the URL it works fine.
the test folder is also a shared folder from another server.

What i want to happen is when people type that they are automatically forwarded to a secure page.

Server is 2003 iis6

Thanks
 
You probably already have ASP support in IIS, so you could use this for your default document:

Code:
<%
dim port,secureurl
secureurl = "[URL unfurl="true"]https://www.myserver.com/test"[/URL]
port = request.servervariables("SERVER_PORT")
if port<>443 then response.redirect(secureurl) end if
'my other code or some other redirect
%>

-a6m1n0

Curiosity only kills cats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top