Saturday 15 August 2015

asp.net - Url Rewriter works on localhost but not on production server -


I have found URLRewriter to work perfectly on my localot, but I get 404 errors on output.

> I am using IIS 6, and what I have read should only work.

Here's my web In config:

  & lt; Rewriter & gt; & Lt; Url = "~ / (\ d +) $" from = "~ / item / description. Aspx? Item id = $ 1" /> rewrite & lt; Rewrite url = "~ / item / (\ d +) $" from "" / "/ item / description. Aspx? Item IId = $ 1" /> & Lt; / Rewriter & gt; & Lt; Section name = "rewriter" required display = "wrong" type = "intelligencia.URLRIR configuration.referrer configurationActionHandler, Intelligencia.URLERI" /> & Lt; HttpModules & gt; & Lt; Add name = "ScriptModule" type = "System.Web.Handlers.ScriptModule, System.Web.Extensions, Version = 3.5.0.0, Culture = Neutral, PublicKeyToken = 31BF3856AD364E35" /> & Lt; Add name = "UrlRewriter" type = "Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" /> & Lt; / HttpModules & gt;  

Does anyone have a similar problem and have solved it?

Thank you!

  and rewrite url = "~ / items / (\ D +) $" From = "~ / item / description. Aspx? ItemIdId = $ 1" />  

Does that parameter mean to be an ID? At present this item is idid.

Hope it helps.


No comments:

Post a Comment