分享

写回答

发帖

[其他] 如何解决xxx.com和www.xxx.com被搜索引擎重复收录问题?

GoDaddy GoDaddy 6145 人阅读 | 10 人回复

发表于 2010-6-25 08:54:01 | 显示全部楼层 |阅读模式

windows主机,
是用web.config作301转向实现么?

就是让搜索引擎只收录www.xxx.com的内容
而不收录xxx.com的内容

我用国内主机的时候是把xxx.com直接指向www.xxx.com

在godaddy应该怎么做呢?

回答|共 10 个

好酒

发表于 2010-6-25 09:04:49 | 显示全部楼层

还不是那样做,如果域名可以做url转向的话,就做,不能的话,就用web.config作301,再不能的话,就只能用首页做301了
RAKSmart

skysideme

发表于 2010-6-25 09:35:31 | 显示全部楼层

1: 用robots.txt
2:在.htaccess文件中把404指向一个php或asp页面,然后在该页面用301,这个对付google很有效

昊天

发表于 2010-6-25 09:37:25 | 显示全部楼层

我的是widows主机

昊天

发表于 2010-6-25 09:39:08 | 显示全部楼层

我的web.config,这么写对么?
  1.   
  2.    
  3.       <?xml version="1.0" encoding="UTF-8"?>
  4. <configuration>
  5.   <system.webServer>
  6.     <rewrite>
  7.       <rules>
  8.         <rule name="channel">
  9.           <match url="/([_0-9a-z-]+)/index.html" ignoreCase="false" />
  10.           <action type="Rewrite" url="/([_0-9a-z-]+)/" appendQueryString="false" />
  11.         </rule>
  12.                 <rule name="front">
  13.           <match url="http://www.xxx.com/index.html" ignoreCase="false" />
  14.           <action type="Rewrite" url="http://www.xxx.com" appendQueryString="false" />
  15.         </rule>
  16.                 <rule name="home">
  17.           <match url="http://xxx.com/index.html" ignoreCase="false" />
  18.           <action type="Rewrite" url="http://www.xxx.com" appendQueryString="false" />
  19.         </rule>
  20.                 <rule name="go">
  21.           <match url="http://xxx.com" ignoreCase="false" />
  22.           <action type="Rewrite" url="http://www.xxx.com" appendQueryString="false" />
  23.         </rule>
  24.       </rules>
  25.     </rewrite>
  26.     <httpErrors errorMode="Detailed" />
  27.     <asp scriptErrorSentToBrowser="true" />
  28.   </system.webServer>
  29.   <system.web>
  30.     <customErrors mode="Off" />
  31.     <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
  32.   </system.web>
  33. </configuration>   
  34.   
复制代码
[/quote]

[ 本帖最后由 昊天 于 2010-6-25 09:40 AM 编辑 ]

add.c

发表于 2010-6-25 09:39:16 | 显示全部楼层

ASP 301转向代码

<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.idcspy.com"
%>

昊天

发表于 2010-6-25 09:44:47 | 显示全部楼层

问题是
xxx.com
和www.xxx.com
指向的都是同一个地址啊?

add.c

发表于 2010-6-25 09:45:53 | 显示全部楼层

回复 7# 的帖子

是啊.
还有些程序可以在后台设置的,   Google统计里也可以设置

昊天

发表于 2010-6-25 09:47:43 | 显示全部楼层

godaddy的后台
在域名控制面板里无法把xxx.com直接指向www.xxx.com
是吧?

add.c

发表于 2010-6-25 09:49:07 | 显示全部楼层

回复 9# 的帖子

您需要登录后才可以回帖 登录 | 注册

本版积分规则