1

我正在尝试使用 urlrewriter.net 并按照此处的说明进行操作,但是当我运行它时出现此错误:

The element 'rewrtie' is not allowed.

这是我在 web.config 文件中添加的内容:

<httpModules>
    <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
</httpModules>

<modules runAllManagedModulesForAllRequests="true">
    <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule" />
</modules>

  <configSections>
  <section name="rewriter"
            requirePermission="false"
            type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />

<rewriter>
    <rewrtie url="~/User/Ahmed/ahmed.aspx" to="~/User/ahmed" />
</rewriter> 

使用asp.net 3.5有什么问题,谢谢

4

1 回答 1

2

您阅读了多少次消息,却没有注意到(就像您的用户名一样)其中两个字母是错误的?

<rewrite url="~/User/Ahmed/ahmed.aspx" to="~/User/ahmed" />
于 2011-05-08T11:06:18.117 回答