Click here to Skip to main content
15,882,163 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

I am new in concept of url rewriting and I really need a help for it.

I have done url rewrite by using routing and locally it is working fine but when I am uploading it on live , it is showing page not found.

I am unable to understand the problem as it is working fine in local.

So, please help me to resolve this problem ....

Thanks In Advance !!
Posted

1 solution

Make sure to add Modules and Handlers in Web.Config file:

C#
<modules runallmanagedmodulesforallrequests="true">
      <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule,<br mode=" hold=" />                    System.Web, Version=4.0.0.0, Culture=neutral,<br mode=" />      
</modules>
<handlers>
      <add>
            name="UrlRoutingHandler"
            preCondition="integratedMode"
            verb="*" path="UrlRouting.axd"
            type="System.Web.HttpForbiddenHandler, System.Web,  
              Version=2.0.0.0, Culture=neutral,  
              PublicKeyToken=b03f5f7f11d50a3a"/>
</add></handlers>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900