Michael

Michael

  • 1.4k
  • 234
  • 18.2k

ASP.NET Friendly Url problems

May 28 2016 3:26 AM
Hello,
 
I have a problem which is urgent to solve. I have installed nuget package of asp.net friendly urls, however it does not working properly. The package installed also these lines of code to RouteConfig.cs:
 
var settings = new FriendlyUrlSettings();
settings.AutoRedirectMode = RedirectMode.Permanent;
routes.EnableFriendlyUrls(settings);
 
 
For some pages it works fine, for some other it doesn't work at all. For example: I have page users.aspx which redirect to users/ as it should be. On the other hand I have page ProjectBrowse.aspx and it cannot find it when I type ProjectBrowse. I tried to set routes.MapPageRoute above the  code block that package installed but the problem persists. 
 
Thank you in advance.  

Answers (1)