当前位置:首页 > SEO > 正文

301重定向设置,可以减少权重分散,防作弊降权

对于设置301重定向有很多好处,其中之一就是利于seo防止搜索引擎误操作将多域名站点设置为作弊站点,同时也减少权重分散,像访问www.ihuan.me/1046.html则会被跳转到ihuan.me/1046.html增强流量的汇集。具体方法如下。

646cb4ef50d8548

  1.新建一个站点,对应目录如D:\wwwroot\301web。该目录下只需要1个文件,即index.html或者加个404.htm。绑定要跳转的域名,如图:

  2.在IIS中选中刚才我们建立的站点,右键,属性,主目录,选择重定向到,输入网址如:http://www.xxxx.com,同时注意选中下面的资源的永久重定向选项。如下图:

  3.到此,我们已经完成了将xxxx.com这个域名301重定向到www.xxxx.com的工作。

  注意问题:

  “上面输入准确的 URL(X)”这个选项建议不要选。

  不选的结果是:

  当输入xxxx.com转到了www.xxxx.com,

  当输入xxxx.com/sanwen/suibi/时,转到了www.xxxx.com/sanwen/suibi/。

  选上的结果是:

  当你输入xxxx.com或者xxxx.com/sanwen/suibi/都会转到www.xxxx.com。

  好了,如果只是想把不带www的转到带www的或者其他没有用过的域名转到正在使用的域名,这样就可以了。但是如果你要的域名已经做过网站,想要把权重传递给新网站,可以参考下面这个方法:

  第一步同上,主要是第二步,如图:

  注意红色字体的部分,在重定向到地址的后面多了$S$Q字符,即写成了http://www.xxxx.com$S$Q。“上面输入准确的 URL(X)”这个选项也打了勾。

  对于$S$Q字符,这里解释一下:

  $S 将请求的URL 的后缀传递给新的URL。后缀是用重定向的URL 代替之后,初始URL 中所保留的部分。

  如果未设置 EXACT_DESTINATION 标志,则结果目标URL 的名称将具有所请求文件的名称(作为文件夹名称)以及文件名本身。

  $Q 将初始URL 中的参数(如 querystring 参数)传递至新的 URL,包括问号(?)。

  如果不加上$S$Q字符的话,内页的301都会跳转到首页,加上$S$Q字符的目的就是内页也能准确的跳转到新域名的对应内页。

  好了,这样就完成了301永久重定向的设置,设置好之后最好能测试下是否返回的是301值,推荐个网址:http://www.seoconsultants.com/tools/headers。

  百度对301的反应并不像想象中那么慢,第二天就收录了xxxx.com这个页面,快照最新。当然,快照的内容是www.xxxx.com的内容,而不是301web里index.html的内容。

标签:
上一篇: 下一篇:

1,119 条评论

评论加载中...
  1. Aw, this was an exceptionally good post. Taking the time and actual effort to generate a very good article… but
    what can I say… I procrastinate a lot and never seem to get anything done.

    2018年6月12日 11:45 评论
  2. 189楼
    这家伙可能用了美佬的代理 谷歌浏览器 Windows 10
    Live22 casino  

    I don’t even know how I ended up here, but I believed this submit was good.
    I don’t recognise who you are however definitely you are going to a well-known blogger
    should you are not already. Cheers!

    2018年6月12日 09:59 评论
  3. 188楼
    这家伙可能用了美佬的代理 火狐浏览器5.0 Windows 7
    3win8 singapore  

    No matter if some one searches for his required thing, therefore he/she wishes to be
    available that in detail, therefore that thing is
    maintained over here.

    2018年6月12日 08:43 评论
  4. 187楼
    Denmark 谷歌浏览器 Mac OS X 10_13_2
    adress  

    Sweet blog! I found it while surfing around on Yahoo News.
    Do you hhave aany suggestions on how to get listed in Yahoo News?

    I’ve been trying for a while but I never seem to get
    there! Appreciate it

    2018年6月11日 22:01 评论
  5. 186楼
    这家伙可能用了美佬的代理 谷歌浏览器 Windows 10
    playboy888  

    Spot on with this write-up, I seriously believe this site needs a lot more attention. I’ll probably be
    returning to read more, thanks for the info!

    2018年6月11日 22:00 评论
  6. Awesome article.

    2018年6月11日 21:58 评论
  7. 184楼
    这家伙可能用了美佬的代理 谷歌浏览器 Linux
    3Win8 Member  

    Yes! Finally someone writes about 3win8 online casino.

    2018年6月11日 21:41 评论
  8. 183楼
    这家伙可能用了美佬的代理 火狐浏览器 Windows 10
    live22 singapore  

    I don’t know if it’s just me or if perhaps
    everybody else encountering issues with your site.
    It looks like some of the text within your content are running off the screen.
    Can somebody else please provide feedback and let me know if this is happening to them
    too? This could be a problem with my web browser because I’ve had this happen before.
    Kudos

    2018年6月11日 18:27 评论
  9. 182楼
    这家伙可能用了美佬的代理 Safari浏览器 Mac OS X 10_12_6
    film bioskop  

    I’m gone to convey my little brother, that he should also go to see this website on regular
    basis to take updated from newest news.

    2018年6月11日 17:38 评论
  10. Hey! I know this is kinda off topic nevertheless I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog article or
    vice-versa? My blog addresses a lot of the same topics as yours and I think we could greatly benefit from
    each other. If you might be interested feel free to send
    me an e-mail. I look forward to hearing from
    you! Fantastic blog by the way!

    2018年6月11日 10:00 评论

发表评论

不理你。不要啊!吃饭。吃惊。吃西瓜。飞吻!恭喜!Hi纠结!膜拜!OK抛媚眼。泡泡糖。抛钱。忍!生闷气!调皮。偷看。委屈。献花。疑问?抓狂!

小提示:Ctrl+Enter快速提交助您一臂之力~
加载中……