aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-10-11 18:01:52 +0800
committerGitHub <noreply@github.com>2023-10-11 18:01:52 +0800
commitdca195e9bd0d14a5cf888524e51175da8ab24588 (patch)
treec6a52fd7d31712e479e68b8d830b1a9f09422b9b /docs
parent1050d7a78fa905a7b518bb0ff968cb771392ee1e (diff)
downloadgitea-dca195e9bd0d14a5cf888524e51175da8ab24588.tar.gz
gitea-dca195e9bd0d14a5cf888524e51175da8ab24588.zip
Fix the robots.txt path
Diffstat (limited to 'docs')
-rw-r--r--docs/content/administration/search-engines-indexation.en-us.md2
-rw-r--r--docs/content/administration/search-engines-indexation.zh-cn.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/administration/search-engines-indexation.en-us.md b/docs/content/administration/search-engines-indexation.en-us.md
index 7898e8146e..664940697d 100644
--- a/docs/content/administration/search-engines-indexation.en-us.md
+++ b/docs/content/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/docs/content/administration/search-engines-indexation.zh-cn.md b/docs/content/administration/search-engines-indexation.zh-cn.md
index 77ad5eca2c..904e6de11b 100644
--- a/docs/content/administration/search-engines-indexation.zh-cn.md
+++ b/docs/content/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)。