开发者

Url rewriter in ASP.NET: Resource cannot be found

I am using the url rewriter described here.

On production, it works great but loca开发者_如何学Golly, for any links that uses url rewrite, it says:

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Do you have any idea why? Do I have to install IIS locally and configure something?

Some rules I use:

<RewriterConfig>
<Rules>
  <RewriterRule>
    <LookFor>/Payment/Secure/Order.htm</LookFor>
    <SendTo>/Payment/Secure/Order.htm</SendTo>
  </RewriterRule>
  <RewriterRule>
    <LookFor>/Payment/Secure/Result.htm</LookFor>
    <SendTo>/Payment/Secure/Result.htm</SendTo>
  </RewriterRule>
  <RewriterRule>

..

They are all defined well because they work in production...

Thanks a lot!


Locally, Url rewrite only works with IIS running on localhost for your website!


Yes specify the correct path name for your web server.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜