Files
gitea-docs/i18n/zh-tw/docusaurus-plugin-content-docs/version-1.21/administration/search-engines-indexation.md
appleboy dbfa0ba454 docs: add zh-tw folder (#195)
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/195
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: appleboy <appleboy.tw@gmail.com>
Co-committed-by: appleboy <appleboy.tw@gmail.com>
2025-04-04 23:28:16 +00:00

891 B
Raw Blame History

date, slug, sidebar_position, aliases
date slug sidebar_position aliases
2023-05-23T09:00:00+08:00 search-engines-indexation 60
/zh-tw/search-engines-indexation

搜索引擎索引

默认情况下,您的 Gitea 安装将被搜索引擎索引。 如果您不希望您的仓库对搜索引擎可见,请进一步阅读。

使用 robots.txt 阻止搜索引擎索引

为了使 Gitea 为顶级安装提供自定义的robots.txt(默认为空的 404请在[custom文件夹或CustomPath]administration/customizing-gitea.md中创建一个名为 robots.txt 的文件。

有关如何配置 robots.txt 的示例,请参考 https://moz.com/learn/seo/robotstxt

User-agent: *
Disallow: /

如果您将 Gitea 安装在子目录中,则需要在顶级目录中创建或编辑 robots.txt

User-agent: *
Disallow: /gitea/