的.htaccess R = 301 VS R = 302 [英] .htaccess r=301 vs r=302

查看:338
本文介绍了的.htaccess R = 301 VS R = 302的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的移动创造了我的.htaccess规则,还是坏的网页等等...

I am creating rules in my .htaccess for mobile, or bad pages etc...

我使用的规则:

rewriterules badpage /goodpage.html [r=302]

rewriterules iphone /iphone.html [r=301]

哪一个是更好地使用?

Which one is better to use?

我知道是暂时的,永久性的,但是当一个暂时成为永久性的,我的理解是都做同样的事情,所以相同的结果结束。

I know is temporary and permanent, but when a temporary becomes permanent, my understanding is both do the same thing so same result at the end.

我想知道什么是浏览器,机器人角度301和302之间的区别。

I would like to know what is the difference between the 301 and 302 on a browser and bots perspective.

推荐答案

在永久移动网站或网页,最好的做法是使用301重定向。 302家族在这种情况下,似乎不正确。说临时移动302告诉搜索引擎保留旧的域或页面索引,但它是desireable为他们索引的新位置。人们使用302重定向,以努力规避谷歌老化延迟。此解决方法可能工作在某些时候,但它不是目前最好的做法。

When permanently moving a web site, or a web page, best practice is to use a 301 redirect. 302s in this situation seem incorrect. By saying "temporary move" a 302 tells search engines to keep the old domain or page indexed, but it would be desireable for them to index the new location. People use 302 redirects in an effort to circumvent the Google aging delay. This workaround might have worked at some point, but it is not a current best practice.

参考: 301 VS 302重定向

这篇关于的.htaccess R = 301 VS R = 302的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆