Skip to main content

Posts

Showing posts from August, 2013

Tip/Trick: Fix Common SEO Problems Using the URL Rewrite Extension

Search engine optimization (SEO) is important for any publically facing web-site.  A large % of traffic to sites now comes directly from search engines, and improving your site’s search relevancy will lead to more users visiting your site from search engine queries.  This can directly or indirectly increase the money you make through your site. This blog post covers how you can use the free Microsoft  URL Rewrite Extension  to fix a bunch of common SEO problems that your site might have.  It takes less than 15 minutes (and no code changes) to apply 4 simple  URL Rewrite  rules to your site, and in doing so cause search engines to drive more visitors and traffic to your site.  The techniques below work equally well with both ASP.NET Web Forms and ASP.NET MVC based sites.  They also works with all versions of ASP.NET (and even work with non-ASP.NET content). [In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at:  twitter.com/scottg

Tips and Tricks on how to improve MVC Application Performance

In this post we will cover a few tips and tricks to improve ASP.NET MVC Application Performance. Run in Release mode Make sure your production application always runs in release mode in the web.config ? 1 < compilation debug = "false" ></ compilation > or change this in the machine.config on the production servers ? 1 2 3 4 5 < configuration >      < system.web >            < deployment retail = "true" ></ deployment >      </ system.web > </ configuration > Only use the View Engines that you require ? 1 2 3 4 5 protected void Application_Start() {      ViewEngines.Engines.Clear();      ViewEngines.Engines.Add( new RazorViewEngine()); } Use the CachedDataAnnotationsModelMetadataProvider ? 1 ModelMetadataProviders.Current = new CachedDataAnnotationsModelMetadataProvider(); Avoid passing null models to views