目前。 程序对子目录索引页面, 有2种形式, 一种以“/”结束, 一种没有以“/”结束,这样, 在一个网站内部, 就有不同的URL地址表达,对页面优化会产生非常不利的的影响,因此, 下午下班前, 检查并修正了这个缺陷。
同一个页面, 特别是网站首页和子目录的默认页面,往往可以用三种不同的URL地址形式(首页有更多的URL地址表达,因为通常一级域名如:http://chinapromoter.com 也解析到同一个空间),下面这三个URL地址其实指向的是同一个网站的同一个页面:
http://www.chinapromoter.com/english/b2b-list
http://www.chinapromoter.com/english/b2b-list/
http://www.chinapromoter.com/english/b2b-list/index.htm
到目前为止, 我们无法确定哪种多搜索引擎是最友好的, 但毫无疑问, 在搜索引擎看来, 这是三个不同的URL地址, 而搜索引擎的链接分析体系是以URL为单位的,即每一个确定的URL有其自己确定的链接得分。所以虽然上面这三个URL到达的都是同一个页面,但在链接分析体系里,它们却是三个完全不同的页面。
假设现在有三个站点同意跟这个网站进行友情链接。如果这三个站点分别跟上面的三个URL友情链接,尽管这三个URL指向同一个页面,但链接分析体系是只认URL的,所以每个URL只能按一个链接计算。即均为1。这时候其竞争者只要有两个链接就能胜出。反之,若这三个站点都链至同一个URL,例如:http://www.chinapromoter.com/english/b2b-list/,那么 URL:http://www.chinapromoter.com/english/b2b-list/ 的链接结果就不再是1,而是它的三倍了。
一般看来,下面2种的形式, 使用比较普遍,但目前无法确定那种使用最普遍。
http://www.chinapromoter.com/english/b2b-list/
http://www.chinapromoter.com/english/b2b-list/index.htm
因此,策划链接时应注意尽可能把所有链接放到一个确定的目标URL下,这样做一方面不会造成外部链接资源的流失和浪费,同时由于该目标URL页上集中了所有外部链接,亦会使你的目标链接页更具权威性和信服力。
搜索优化网站 SXWO EC不同的URL地址表达的修正
文件 createpage.asp 修正
366行
"<@btypepath@>","<@path@>"&productfolder&bfoldername
修改为
<@btypepath@>","<@path@>"&productfolder&bfoldername&"/"
后面加&"/"
368行
"<@stypepath@>","<@path@>"&productfolder&bfoldername&"/"&sfoldername
修改为
"<@stypepath@>","<@path@>"&productfolder&bfoldername&"/"&sfoldername&"/"
423-424行
"<@btypepath@>","<@path@>"&productfolder&bfoldername
"<@stypepath@>","<@page@>"&productfolder&bfoldername&"/"&sfoldername
修改为
"<@btypepath@>","<@path@>"&productfolder&bfoldername&"/"
"<@stypepath@>","<@page@>"&productfolder&bfoldername&"/"&sfoldername&"/"
476行
"<@btypepath@>","<@path@>"&productfolder&bfoldername
修改为
"<@btypepath@>","<@path@>"&productfolder&bfoldername&"/"
478行
"<@stypepath@>","<@path@>"&productfolder&bfoldername&"/"&sfoldername
修改为
"<@stypepath@>","<@path@>"&productfolder&bfoldername&"/"&sfoldername&"/"
533-534行
"<@btypepath@>","<@path@>"&productfolder&bfoldername
"<@stypepath@>","<@page@>"&productfolder&bfoldername&"/"&sfoldername
修改为
"<@btypepath@>","<@path@>"&productfolder&bfoldername&"/"
"<@stypepath@>","<@page@>"&productfolder&bfoldername&"/"&sfoldername&"/"
文件 createproduct.asp 修正
66行
c_tstypename="- <a href=<@path@>"&productfolder&bfoldername&"/"&sfoldername&">"&stypename&"</a>"
修改为
c_tstypename="- <a href=<@path@>"&productfolder&bfoldername&"/"&sfoldername&"/>"&stypename&"</a>"
在sfoldername&"后加“/”
123-124 行
c_content=replace(c_content,"<@btypepath@>",productfolder&bfoldername)
c_content=replace(c_content,"<@stypepath@>",productfolder&bfoldername&"/"&sfoldername)
修改为
c_content=replace(c_content,"<@btypepath@>",productfolder&bfoldername&"/")
c_content=replace(c_content,"<@stypepath@>",productfolder&bfoldername&"/"&sfoldername&"/")
249-250行
c_content=replace(c_content,"<@btypepath@>",productfolder&bfoldername)
c_content=replace(c_content,"<@stypepath@>",productfolder&bfoldername&"/"&sfoldername)
修改为
c_content=replace(c_content,"<@btypepath@>",productfolder&bfoldername&"/")
c_content=replace(c_content,"<@stypepath@>",productfolder&bfoldername&"/"&sfoldername&"/")