From 827d00652af4eb3bb255aff47f5309f9d6fa0673 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 Oct 2023 18:01:52 +0800 Subject: [PATCH] Fix the robots.txt path --- administration/search-engines-indexation.en-us.md | 2 +- administration/search-engines-indexation.zh-cn.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/administration/search-engines-indexation.en-us.md b/administration/search-engines-indexation.en-us.md index 7898e814..66494069 100644 --- a/administration/search-engines-indexation.en-us.md +++ b/administration/search-engines-indexation.en-us.md @@ -23,7 +23,7 @@ If you don't want your repository to be visible for search engines read further. ## Block search engines indexation using robots.txt To make Gitea serve a custom `robots.txt` (default: empty 404) for top level installations, -create a file called `robots.txt` in the [`custom` folder or `CustomPath`](administration/customizing-gitea.md) +create a file with path `public/robots.txt` in the [`custom` folder or `CustomPath`](administration/customizing-gitea.md) Examples on how to configure the `robots.txt` can be found at [https://moz.com/learn/seo/robotstxt](https://moz.com/learn/seo/robotstxt). diff --git a/administration/search-engines-indexation.zh-cn.md b/administration/search-engines-indexation.zh-cn.md index 77ad5eca..904e6de1 100644 --- a/administration/search-engines-indexation.zh-cn.md +++ b/administration/search-engines-indexation.zh-cn.md @@ -22,7 +22,7 @@ menu: ## 使用 robots.txt 阻止搜索引擎索引 -为了使 Gitea 为顶级安装提供自定义的`robots.txt`(默认为空的 404),请在[`custom`文件夹或`CustomPath`](administration/customizing-gitea.md)中创建一个名为 `robots.txt` 的文件。 +为了使 Gitea 为顶级安装提供自定义的`robots.txt`(默认为空的 404),请在 [`custom`文件夹或`CustomPath`](administration/customizing-gitea.md)中创建一个名为 `public/robots.txt` 的文件。 有关如何配置 `robots.txt` 的示例,请参考 [https://moz.com/learn/seo/robotstxt](https://moz.com/learn/seo/robotstxt)。