【问题标题】:301 Redirection Without SEO Damage301重定向无SEO损坏
【发布时间】:2014-12-28 21:36:29
【问题描述】:

我需要在没有任何 SEO 问题/损害的情况下更改我的一些 URL。 (我将从谷歌数据库中删除我所有的旧网址)

例如,

旧网址:www.site.com/search/term.html

新网址:www.site.com/tag/term.html

我的 htaccess 文件包含这一行:

RewriteRule ^search/(.*).html index.php?do=search&keyword=$1

我必须如何改变它? (我必须小心 seo 损坏)

像这样,或???

RewriteRule ^search/(.*).html index.php?do=search&keyword=$1
RewriteRule ^search/(.*).html /tag/$1.html [R=301,L]

【问题讨论】:

    标签: .htaccess redirect url-rewriting seo http-status-code-301


    【解决方案1】:

    如果我明白了,您希望 /tag/ URL 进行搜索并将 /search/ URL 重定向到它们。

    RewriteRule ^tag/(.*).html index.php?do=search&keyword=$1
    RewriteRule ^search/(.*).html /tag/$1.html [R=301,L]
    

    【讨论】:

    • 谢谢。但是,这会将旧链接的所有 SEO 价值转移到新链接吗? (搜索标记文件夹)
    • 301 重定向传输大部分 PageRank(读取 SEO 值),但不是全部。如果您更改 URL,它们是您能做的最好的事情。
    猜你喜欢
    • 2011-11-28
    • 2010-11-15
    • 2012-12-28
    • 2016-06-21
    • 2014-09-19
    • 2023-04-05
    • 2011-05-23
    • 1970-01-01
    • 2021-02-04
    相关资源
    最近更新 更多