ASP.NET app: use https for the first page and then http for the other pages

45 pts.
Tags:
ASP.NET
ASP.NET 2.0
ASP.NET Web applications
HTTPS
Hi,

I have created a web application in asp.net and i want that when i access the appl. the first page (login.aspx) to be accessed through https all the others in http. what should i do in order to accomplish this. thank you.

elai



Software/Hardware used:
asp.net(vs 2005) iis 6.0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Koohiisan
    You could direct any visitors to the http version of login.aspx to the https version by just forwarding them to the https url. (You should be able to monitor the url they used to get to the page, as to whether it was http or https.) Then, once they log in, forward them to some part of your site by referencing the http url.
    5,020 pointsBadges:
    report
  • Elai
    hello, if i just do Response.Redirect("https://" + servername + dirpath....+"/login.aspx"); then i get an error : The resource cannot be found. what is going wrong?
    45 pointsBadges:
    report
  • carlosdl
    Your IIS must be configured to serve that https page.
    69,175 pointsBadges:
    report
  • Elai
    So i have to register a certificate on the web server or what else should i do? which steps to follow... thank you, elai
    45 pointsBadges:
    report
  • carlosdl
    Yes, you need a certificate to serve https sites. Check this link: How To Set Up an HTTPS Service in IIS
    69,175 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following