.htaccess or .htpasswd equivalent on IIS?

后端 未结 4 1565
天涯浪人
天涯浪人 2020-11-27 04:27

Does anyone know if there is an equivalent to .htaccess and .htpassword for IIS ? I am being asked to migrate an app to IIS that uses .htaccess to control access to sets of

4条回答
  •  爱一瞬间的悲伤
    2020-11-27 04:51

    There isn't a direct 1:1 equivalent.

    You can password protect a folder or file using file system permissions. If you are using ASP.Net you can also use some of its built in functions to protect various urls.

    If you are trying to port .htaccess files used for url rewriting, check out ISAPI Rewrite: http://www.isapirewrite.com/

提交回复
热议问题