views:

84

answers:

1

I've gotten URLRewriter to work on my localhot perfectly, but on production I get 404 errors.

I'm using IIS 6, and from what I read this should just work.

Here is what i have in my web.config:

<rewriter>
  <rewrite url="~/(\d+)$"       to="~/Items/Details.aspx?ItemId=$1" />
  <rewrite url="~/Items/(\d+)$" to="~/Items/Details.aspx?ItemIId=$1" />
</rewriter>

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


<httpModules>
  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>

</httpModules>

Has anyone had a similar problem and solved it?

Thanks!

A: 
<rewrite url="~/Items/(\d+)$" to="~/Items/Details.aspx?ItemIdId=$1" />

Is that GET parameter meant to be ItemId? Cos at the moment it's ItemIdId.

Hope this helps.

Lucas Richter
nah just a typo, like i said, works on localhost, not on production
Jack Marchetti