简体   繁体   English

将 301 永久重定向更改 URL 以仅使用带有单个参数的查询字符串会损害 SEO 吗?

[英]Will a 301 permanent redirect to change URLs to use only a query string with a single parameter hurt SEO?

If I use a RedirectMatch 301 code in my .htaccess file:如果我在.htaccess文件中使用RedirectMatch 301代码:

Original: /automobiles/pickups/?category=classic原文: /automobiles/pickups/?category=classic

Redirect: RedirectMatch 301 ^/automobiles/(.*)/?$ /?s=$1 [L]重定向: RedirectMatch 301 ^/automobiles/(.*)/?$ /?s=$1 [L]

Will it hurt my SEO status?它会损害我的 SEO 状态吗?

301 is the best redirect to use in your scenario, eg permanent redirect. 301 是在您的场景中使用的最佳重定向,例如永久重定向。 I could speculate there is a very slight deterioration of link value passed through 301, so it's best if you could update the original links to point to their new destination.我可以推测通过 301 传递的链接值有非常轻微的恶化,因此最好更新原始链接以指向它们的新目的地。 It won't hurt if you don't get everyone else to update external links.如果您不让其他人更新外部链接,也不会受到伤害。 Although definitely update internal links to point to the new url.虽然肯定会更新内部链接以指向新的 url。

Edit:编辑:

I normally used RewriteRule instead of RedirectMatch 301.我通常使用 RewriteRule 而不是 RedirectMatch 301。

RewriteRule ^/automobiles/pickups/([az-]+)$ /automobiles/pickups/?category=$1 [R=301,L]

Rewrites your URL /automobiles/pickups/?category=classic to /automobiles/pickups/classic将您的 URL /automobiles/pickups/?category=classic重写为 /automobiles/pickups /automobiles/pickups/classic

Use Firefox LiveHeaders to make sure visiting /automobiles/pickups/?category=classic will return a 301 to /automobiles/pickups/classic and also change all your internal links to point to /automobiles/pickups/classic使用 Firefox LiveHeaders 确保访问/automobiles/pickups/?category=classic将返回 301 到/automobiles/pickups/classic并将所有内部链接更改为指向 /automobiles/pickups/classic

SEO redirection, From bad to good: SEO重定向,从坏到好:

  • Javascript Javascript
  • Meta
  • htaccess redirect htaccess 重定向
  • htaccess rewrite htaccess 重写

If you can, use rewrite instead of redirect.如果可以,请使用重写而不是重定向。 Apparently, redirect 301 is not so bad, however, since nobody really knows the robot's criteria then the best is to avoid it.显然,重定向 301 并没有那么糟糕,但是,因为没有人真正知道机器人的标准,所以最好避免它。

No, It will not affect your website SEO.不,它不会影响您的网站 SEO。 If you are using 301 permanent redirection technique.如果您使用 301 永久重定向技术。

A 301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. 301 重定向是最有效和搜索引擎友好的网页重定向方法。 It's not that hard to implement and it should preserve your search engine rankings for that particular page.实施起来并不难,它应该保留您对该特定页面的搜索引擎排名。 If you have to change file names or move pages around, it's the safest option.如果您必须更改文件名或移动页面,这是最安全的选择。 The code “301” is interpreted as “moved permanently”.代码“301”被解释为“永久移动”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM