Do .htaccess files only work on Linux servers? I am working in ASP.Net.
If it doesn’t work with ASP, then what is the alternative solution?
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.
ASP.NET production deployment happens over IIS (web server from MS) – IIS has its own authorization mechanism. See this link for translating htaccess into equivalent IIS configuration: http://learn.iis.net/page.aspx/557/translate-htaccess-content-to-iis-webconfig/
Alternately, you can also use commercial products such as Helicon Ape that provides IIS Add-on that will support Apache .htacces and .htpasswd files.