c# - Web.config URL Rewrite -
I would like to rewrite all those files which are real files or actual directories, and This is what I have done so far: Try adding the following condition: / api / * < / Code> to
~ / Default.aspx .
/ api / * as
default.aspx .
& lt; Condition & gt; & Lt; Input = "{REQUEST_FILENAME}" matchType = "IsFile" reject = "true" /> & Lt; Input = "{REQUEST_FILENAME}" matchType = "isDirectory" reject = "true" /> & Lt; Input = "{URL}" Reject = "true" pattern = "(?: \ / Api)" /> & Lt; / Status & gt;
Comments
Post a Comment