Cheap ASP.NET Tips to make ASP.NET MVC application SEO friendly

Cheap ASP.NET Tips to make ASP.NET MVC application SEO friendly

CheapASPNETHostingReview.com | Best and Cheap ASP.NET MVC hosting. In this post I will show you how to make ASP.NET MVC application SEO Friendly. As you know SEO for a website is important. Its like you driving a car without oil. Sure you need the oil.Ok I will go through the most important elements. However, SEO changes all the time and we don’t really know what triggers Google so it’s worth continuing your research afterwards to find out if there are things that are forgotten

Note: While not all WordPress installations are perfect for SEO, it’s usually really good compared to custom installations.

Required on-site SEO optimisations for ASP.NET sites

Sitemap in ASP.NET MVC

seo

Sitemaps are important to tell the search engines exactly what pages you have. Unfortunately you have to make them yourself.

For smaller sites, it’s quite simple. Either you do it manually (which works if you don’t have any dynamic content) or automatically (more on that in a second). You simply make a controller called Sitemap, and makes sure your site responds to calls such as /sitemap and /sitemap.xml .

For bigger sites it’s challenge. If you have a million pages which a previous customer of ours did, you need to run an underlying console job that generates the sitemap.

To help you build it there are a couple of Github projects to help you, and here is an example:
https://github.com/maartenba/MvcSiteMapProvider

Only one <h1> on each page

Each page, when fully rendered, should only have a <h1> tag. The <h1> tag is what the page is about, and should be the main headline.

Canonical URL on pages

It’s in general a very good idea to put a canonical URL on most views. The idea is you tell Google what the real version of the URL is.

A typical example is you have the same page that gets indexed with unique query strings:

  • ?tracking=qwerty
  • ?ref=query

The idea is you then make a canonical URL and refer to itself. So if your view is placed on http://domain.com/page, and you have a version such as http://domain.com/page?ref=query, you should have a canonical URL that is http://domain.com/page.

Remove /home/ from URL in ASP.NET MVC

In a lot of ASP.NET MVC projects, many pages end up having a /home/ url. An example could be /home/contact.

The shorter and more clear URLs, the better. And this is just a quick small thing to update inside the route file.

Prev and next on paginated listings

When you have a paginated result, it’s worth implementing the “prev” and “next”. It’s a way of telling the search engines you are on a paginated result, and what the next and previous pages are.