Discount Windows Hosting Tips – LowerCase URLs on ASP.NET MVC

In this article on the Discount Windows Hosting Tips, I wiil tell you about a new function in ASP. NET MVC: the new LowercaseUrls property (not precisely a brand new function of ASP. NET MVC 4 : the routing is really a section of the. NET Framework itself. The LowercaseUrls property is accessible altogether the projects that use. NET 4. 5, regardless of whether it’s ASP. NET MVC 3 or ASP. NET MVC 4, ASP.NET MVC 5, …)

ASP.NET MVC 5 is the newest update to the popular Microsoft technology that enables you to build dynamic, data-driven websites. Like previous versions, this guide shows you step-by-step techniques on using MVC to best advantage, with plenty of practical tutorials to illustrate the concepts. It covers controllers, views, and models; forms and HTML helpers; data annotation and validation; membership, authorization, and security; plus the new Single Page applications.

The issue with ASP. NET MVC is that URLs generated due to the routing mechanism are driven by controller and action names. These can generally be leading to URLs like/Account/Login, and so on.

However the routing mechanism isn’t case-sensitive and also a request to account/login works simply a similar. It is not a very good apply to the SEO to enable URLs along with any casing since it might technically be thought-about to become double pages along with a similar content material.

Usage is extremely straightforward, just set the property similar to the listed code :

public static void RegisterRoutes(RouteCollection routes)
     routes.LowercaseUrls = true;

You can test the modification with this code below:

@Html.ActionLink("Home", "Index", "Home")

 And here is the result:


You do not have to worry in regards to the capital letters with your URLs however this isn’t a cause to forget a few great SEO practices on Discount Windows Hosting Tips.

Best Discount Windows Hosting Recommendation for ASP.NET MVC

After finishing the tutorial mentioned above, if you continue to have a ASP.NET MVC web hosting in your mind, then it ought to be worth trying. Or if you currently feel confused and want some suggestion, then you’ll read our previous post about, Best Dicount Windows ASP.NET MVC Hosting