SSL & page navigation problem

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
Hi all

When navigating between two pages on a site I use Response.redirect("test.aspx"). However, can I use the same statement if the page I am redirecting to is an SSL page?? or do I have to go response.Redirect("https://localhost/project1/text.aspx") or alternatively
response.redirect("https://www.xyz.ie/test.aspx")

Michael.
 
mike55 said:
Hi all

When navigating between two pages on a site I use Response.redirect("test.aspx"). However, can I use the same statement if the page I am redirecting to is an SSL page?? or do I have to go response.Redirect("https://localhost/project1/text.aspx") or alternatively
response.redirect("https://www.xyz.ie/test.aspx")

Michael.
Hey Mike,

I just built a small app that tested your question. I have found, at least on our system, that coming from a non-ssl page to an ssl page works fine if I use the fully qualified URL of the page I'm redirecting to, which places the correct qualifier in the address bar ("https://blah.blah.com/mypagetest.aspx")
If you don't use the full qualifier, the address bar appears to retain the original http://blah.blah.com/mypagetest.aspx. This would be a problem if your site is secure and you don't automatically toggle your url string to https. Your best bet, if possible, would be to use the fully qualified URL, but there are articles where you can read more about these subjects if you want to try to toggle to use relative paths:

These are some samples of what is out there:
Setting up SSL with IIS And ASP.net

Toggle between Https and Http

Good Luck,
Brian
 
Back
Top