探秘Asp.Net4.0新功能之三:SEO
2013-01-14 10:03
260 查看
Asp.Net4.0的webform中,对于Page对象新增加了二个属性:MetaKeywords,MetaDescription
this.Page.MetaKeywords = "Asp.Net4.0";
this.Page.MetaDescription = "Asp.Net 4.0中新增了MetaKeywords与MetaDescription二个属性";
最后asp.net4.0中新增了Response.RedirectPermanent(string url)来取代Response.Redirect(string
url)方法,用于将原来发送的"http 302"变成"http 301",这样据说对搜索引擎更友好(通俗的讲就是原来的Redirect重定向,并不会诱导搜索引擎顺着你的意思抓到新页面,而新的方法可以),类似的还有Response.RedirectToRoutePermanent(string routeName)方法
this.Page.MetaKeywords = "Asp.Net4.0";
this.Page.MetaDescription = "Asp.Net 4.0中新增了MetaKeywords与MetaDescription二个属性";
最后asp.net4.0中新增了Response.RedirectPermanent(string url)来取代Response.Redirect(string
url)方法,用于将原来发送的"http 302"变成"http 301",这样据说对搜索引擎更友好(通俗的讲就是原来的Redirect重定向,并不会诱导搜索引擎顺着你的意思抓到新页面,而新的方法可以),类似的还有Response.RedirectToRoutePermanent(string routeName)方法
相关文章推荐
- 探秘Asp.Net4.0新功能之一:网站自动预热
- 探秘Asp.Net4.0新功能之二:可扩展的(分布式)缓存
- Visual Studio 2010 (ASP.Net 4.0)的新功能
- Asp.Net 4.0 SEO增强之 UrlRouting
- asp.net4.0新特性——对SEO的支持(节选自周公的博客)
- Visual Studio 2010 (ASP.Net 4.0)新功能
- Asp.Net 4.0 SEO增强之 UrlRouting
- ASP.net 4.0 针对SEO的改进
- Asp.Net 4.0 SEO增强之 UrlRouting
- ASP.Net 4.0 对SEO增强一:使用MetaDescription,MetaKeywords,RedirectPermanant等
- Asp.Net 4.0 SEO增强之 UrlRouting
- ASP.NET 4.0 专题实务(II) – 范例应用与4.0新功能(VB / C#双语法)的「勘误表」
- Asp.Net 4.0 SEO增强之UrlRouting
- Visual Studio 2010 (ASP.Net 4.0)新功能
- ASP.Net 4.0 对SEO增强一:使用MetaDescription,MetaKeywords,RedirectPermanant等
- Visual Studio 2010 (ASP.Net 4.0)新功能
- Asp.Net 4.0 SEO增强之 UrlRouting
- 艾伟_转载:VS 2010 和 .NET 4.0 系列之《ASP.NET 4 中的SEO改进 》篇
- 在 IIS6 ASP.NET 4.0 安装 最常遇到的四个问题
- ASP.NET 4.0 无法加载 System.ServiceModel.Activation.HttpModule