开发者

URL Rewrite for one level?

开发者 https://www.devze.com 2023-02-25 14:32 出处:网络
I need a rewrite rule that uses only one parameter. <rewrite url=\"~/(.+).aspx to=\"www.mysite.com/results?search=$1\" />

I need a rewrite rule that uses only one parameter.

<rewrite url="~/(.+).aspx to="www.mysite.com/results?search=$1" />

The issue with this is that I now cannot access my default.aspx page, and basically all requests that are one file deep - images, stylesheets, etc.

I'm guessing there are some exceptio开发者_如何学Gon rules that can be written?

Also, can I on-the-fly do character replacing such as replacing spaces with "+", underscores with dashes, etc?

Thanks.


No it's not about a rule, you need to configure iis to process with asp.net all file requests.

here you are step by step.

http://forums.iis.net/t/1015329.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消