我的网站目前将URL编码的URL作为URI段之一处理:
List<int> authorId= new List<int>(db.Books.GroupBy(x => x.authorId)
.Where(x => x.Any(y => y.datePublished <= now && y.datePublished >= date) && x.Count() > 2)
.Select(x => x.FirstOrDefault().authorId)).Distinct().ToList();
我试图在运行IIS / 8的Azure Web App中复制此功能。我的MVC已经有一个重写规则:
https://report-uri.io/home/pkp_analyse/https%3A%2F%2Fscotthelme.co.uk
当我尝试访问上面的URL时,我收到500错误,指出以下配置文件不可用:
<rule name="CodeIgniter rewrite" stopProcessing="false">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" appendQueryString="false" />
</rule>
处理重写的正确方法是什么?