【问题标题】:301 redirect from top-level domain to index.html in subdirectory301从顶级域重定向到子目录中的index.html
【发布时间】:2010-08-18 20:36:01
【问题描述】:

我正在开发一个小型多语言网站。最初,所有的 html 文件都在顶级目录中。每个页面都有英文版和西班牙文版,它们是不同的html文件。我想将这些文件放在它们自己的子目录en/es/ 中,然后将顶级域重定向到en/index.html(因为英语将是默认语言)。

但是,如果我使用 301 重定向来执行此操作,搜索引擎不会从其索引中删除我的顶级域吗?我希望用户输入www.example.com 并到达www.example.com/en/index.html,但我仍然希望www.example.com 出现在SERP 中。

我没有使用 Apache 的经验,所以我不知道正确的方法。我阅读了一些关于 301 重定向的内容,这似乎是一种可能的方式来做我想做的事,但我不知道这是否是最好的方式。

我在正确的轨道上吗?

【问题讨论】:

标签: html redirect seo indexing multilingual


【解决方案1】:

使用302 Found 代替301 Moved Permanently

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-08
    • 1970-01-01
    • 2013-08-28
    • 1970-01-01
    • 2014-02-18
    • 2022-01-17
    • 1970-01-01
    • 2012-01-19
    相关资源
    最近更新 更多