One question, Lets say that I have an Admin directory on my webpage and I want to use HTTPS for every page in the directory, what is the best way to achieve this ??
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have access to the IIS instance, a quick way to do this is to edit the Properties of your admin folder, go to Directory Security, under Secure Communications, click on Edit… and Check require secure channel (SSL).
This disallows any http traffic altogether, and doesn’t handle a redirect as you could do in your code.