Some Tips That Every .NET Developers Must Know About SEO
Search Engine Optimization (SEO) is an evolving ‘science’ and it keeps changing on purpose. Most articles which involve both SEO and ASP.NET usually focus on how to programatically set the meta keywords tag and they tend to make it look like very important while, as of today, it has minimal effect on optimization. Generally, web developers tend to turn the blind eye when it comes to SEO while a great part of SEO should be done by developers. Here are some tips that every .NET devlopers must know about SEO before building their website.
Favour XHTML with DIV & CSS Design Over Tabular Design
Thankfully, the era of developing tables-based website is about to end. In this time, most of the sites are following the DIV and CSS style of design and are table free, except for tobular data. However, some designers and developers did not make the leap yet. The DIV with CSS design will:
- Generate less code which will improve your ‘code to content’ ranking which is favoured by search engines.
- Improve your page load as your pages tend to have smaller size with reduced tags and will be even smaller with the CSS sheet separated. Load time is another factor in SEO.
- Promote better web semantics by marking your content with the correct XHTML elements. This will enable the spider (the search engine robot which will crawl your pages content) to better understand the structure of your site and your page content.
Its important to always opt-in for XHTML with DIV and CSS type of design and think of rewriting your current tabular based site in a table-free format.
Allow For Meta Description & Meta Tags Keywords
The meta description tag, from SEO point of view, will suggest to the search engine what to display in the search results page. The meta keywords tags are mostly ignored by search engines as spammers gave them a bad reputation, today they are only used to add misspellings and different culture spellings e.g. ‘optimisation’ and ‘optimization’.
ASP.NET does not provide an out-of-the-box solution in adding these tags, so you have two options:
Add a ContentPlaceholder in the head of your MasterPage and fill it with the appropriate MetaKeyword and MetaDescription tags from within the page.In the MasterPage:
<!-- other xhtml code... -->
<asp:ContentPlaceHolder id="head" runat="server">
<!-- other xhtml code... -->
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<meta name="keywords" content="ASPNET, optimisation, optimization" />
<meta name="description" content="Three SEO rules for ASP.NET developers that will improve your site optimisation" />
Use a base page for your ASP.NET pages (Also known as: Page Controller Enterprise Design Pattern) in which you will create a definition for generating the meta tags. In this option, we’re gonna use Meta Tags with Master Pages in ASP.NET which is well written and the code is in both C# and VB.NET.
Permanent 301 HTTP Redirects to Mark Moved Pages
Usually, when developers change the structure of a website, say upgraded the site from ASP to ASP.NET, they tend to forget that the old pages accumulated SEO ranking over time and it would be unwise to throw that away! To point the search engine from the old page location to the new page location, you will need to issue a 301 HTTP redirect to the new URL when somebody, including the spider, requests your old page.
301 Redirection in ASP.NET could be done with the following code in the old page’s “Init” event:
Response.StatusCode = 301;
Response.RedirectLocation = "new-url.aspx";
However, the old page, most probably, will not exist or the old site might be on ASP and ASP is no longer supported on the new site. There is an easy solution for this, try URL Rewriter for ASP.NET. You might also consider implementing your own database driven redirection by using a HttpModule or HttpHandler.
Doing 301 HTTP redirections will maintain the previous ranking that the old URL has accumulated and will update the URL on the search engine result page to the new URL.
Best and Reliable ASP.NET Hosting
HostForLIFE.eu guarantees 99.9% uptime for their professional ASP.NET hosting and actually implements the guarantee in practice. HostForLIFE.eu is the service are excellent and the features of the web hosting plan are even greater than many hosting. HostForLIFE.eu offer IT professionals more advanced features and the latest technology. Relibility, Stability and Performance of servers remain and TOP priority. Even basic service plans are equipped with standard service level agreements for 99.99% uptime. Advanced options raise the bar to 99.99%. HostForLIFE.eu revolutionized hosting with Plesk Control Panel, a Web-based interface that provides customers with 24×7 access to their server and site configuration tools.
ASPHostPortal.com is Perfect, suitable hosting plan for a starter in ASP.NET 5 Hosting. ASPHostPortal the leading provider of Windows hosting and affordable ASP.NET Hosting. ASPHostPortal proudly working to help grow the backbone of the Internet, the millions of individuals, families, micro-businesses, small business, and fledgling online businesses. ASPHostPortal has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, ASPHostPortal guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability.
DiscountService.biz is The Best and Cheap ASP.NET Hosting. DiscountService.biz was established to cater to an under served market in the hosting industry web hosting for customers who want excellent service. DiscountService.biz guarantees the highest quality product, top security, and unshakeable reliability, carefully chose high-quality servers, networking, and infrastructure equipment to ensure the utmost reliability. DiscountService.biz has ability to support the latest Microsoft and ASP.NET technology, such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch. DiscountService.biz is devoted to offering the best Windows hosting solution for you.