Files
gitea-docs/i18n/zh-tw/docusaurus-plugin-content-docs/current/administration/search-engines-indexation.md
Lunny Xiao 965c269495 Update zh tw languages and fix some broken links (#455)
---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <2021+silverwind@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/455
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com>
2026-07-09 23:41:46 +00:00

899 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中建立一個名為 public/robots.txt 的文件。

有關如何設定 robots.txt 的範例,請參考 https://moz.com/learn/seo/robotstxt

User-agent: *
Disallow: /

如果您將 Gitea 安裝在子目錄中,則需要在頂級目錄中建立或編輯 robots.txt

User-agent: *
Disallow: /gitea/