如何使用ASP.NET4.0新功能增强网站的SEO优化
ASP.NET4.0提供了一系列新的特征实现网站的SEO优化,包括:
Page类的新属性:Page.MetaKeywords 和 Page.MetaDescription,网上挣钱; ASP.NET Web Forms 新的URL路由功效; Response.RedirectPermanent()、Response.RedirectToRoutePermanent()方式等。
Page.MetaKeywords 跟 Page.MetaDescription属性将生成 html 标志中的<meta name="description" content="" />和 <meta name="keywords" content="" />
例:C# 代码
Page.MetaDescription ="ASP.NET 4.0学习站点:http://dotnet.aspx.cc/";
Page.MetaKeywords ="孟宪会";
将生成如下代码:
<meta name="description" content="ASP.NET 4.0学习站点:http://dotnet.aspx.cc/"/>
<meta name="keywords" content="孟宪会"/>
具体信息能够参考:
http://msdn.microsoft.com/en-us/library/system.web.ui.page.metakeywords(VS.100).aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.page.metadescription(VS.100).aspx
Response.RedirectPermanent()将进行HTTP 301(Moved Permanently)重定向。
您可能感兴趣的文章:
如何使用ASP.NET4.0新功能增强网站的SEO优化
网站需要SEO,基本的SEO建站要点
站长必知:网站一定要进行优化的原因
新手seo入门手册
seo优化内存的得要性及优化方法
为什么要做seo及目标是什么
什么是SEO?SEO怎么做?SEO新人必看
搜索引擎优化要掌握的20条准则
怎么算优化过度?如何避免过度优化
如何制订网站的SEO策略