Chinapromoter Blog

生活, 艺术, 网络, 技术, 工业, 消费, 记录趣味生活的点点滴滴。

« ASP程序使用 FCKeditor 上传图片设置什么是301永久性重定向和302临时性重定向 »

无法确定的301转向和302转向 - 搜索优化网站 SXWO EC

无法确定的301转向

在 newproduct.htm 和 sproduct.htm 的<head>...</head>区域, 插入一个判断,<head><script src="checkvip.asp"></script></head>,如果是VIP会员, 那么页面就转向到VIP页面,包括VIP产品索引页面或VIP新产品页面, 在不同目录下的checkvip.asp, 转向到不同页面。就象国内很多外贸网站那样, 如果判断是国内用户, 那么就转向到国内页面, 如果是国外用户, 就转向到国外用户。

一般显示:
http://www.lindaint.com/product/car-sun-shade/index.htm

如果是VIP会员,登入以后,就会转向显示:
http://www.lindaint.com/product/car-sun-shade/vipppppindex.htm

checkvip.asp 源代码如下:

<%
call opendb(1)
call getsysteminfo()
call closedb()
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = 0%>
var str=location.pathname;
a=str.substr(str.lastIndexOf("/")+1);
if(a==''){
a='index.htm';}
<%if session("vipuser")=true then%>
a='<%=vipname%>' + a;
document.location.href=a;
<%end if%>

但是, 一个印度专业做SEO的公司, 通过他们的软件检查, 认为这个是301转向,error code: 301 (object permanently moved),目标页面是VIP页面。不过VIP页面已经加入<meta name="robots" content="none">,禁止Spiders去访问跟踪,以防因内容重复而遭搜索引擎惩罚。事实上, 我们可以在GOOGLE找到 http://www.lindaint.com/product/car-sun-shade/, 而没有找到 http://www.lindaint.com/product/car-sun-shade/vipppppindex.htm, 说明已经成功禁止Spiders去访问跟踪VIP页面。

无法确定的302转向

在sign-out.asp页面, 源代码只有2行:

<%
Session.Contents.RemoveAll()
response.redirect "sign-in.asp"
%>

退出以后转向到登陆页面 sign-in.asp。印度SEO的公司, 通过他们的软件检查, 认为这个是302转向,error code: 302 (object temporarily moved)。

目前需要确定2件事情

1、这2个转向确实是301转向和302转向吗?
2、这样的转向会受到搜索引擎的惩罚吗?

初步结论

这个301转向是软件判断错误。理由如下:

1、原始URL有PR值, 而转向以后的URL没有PR值。说明原始URL没有受到搜索引擎的惩罚。
2、在报告的List of valid URLs you can submit to a search engine, e.g. Google Sitemaps部分,列举了可以有效递交GOOGLE等搜索引擎的URL地址, 其中包括那些被认为301转向的网页, 如:http://www.lindaint.com/product/car-sun-shade/index.htm
3、该软件可能认为http://www.lindaint.com/product/car-sun-shade这样的URL表达不够理想。
 

相关链接

一般情况301重定向的实现方法

 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表


Powered By Z-Blog 1.8 Spirit Build 80605

Copyright www.chinapromoter.cn. Some Rights Reserved. 浙ICP备05022498号