Skip to content

Commit

Permalink
docs: Update SEO.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OXeu committed Jun 7, 2024
1 parent 3ea4d40 commit e120d5a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/SEO.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,23 @@ S3_SECRET_ACCESS_KEY=<你的S3SecretAccessKey>
```
xeu.life/seo/*
```
![图片](https://github.com/OXeu/Rin/assets/36541432/ed0ecc72-f61f-4460-8ede-4475ca54ffcb)

Worker 选择为部署的 Worker,点击保存。

随后点击侧边栏菜单 > `规则` > `转换规则` > `重写 URL` > `创建规则`,规则名称随意,自定义筛选表达式为:
> [!NOTE]
> 该筛选表达式只为 Google 做了收录优化,如需其他搜索引擎的优化请自行查找其对应的爬虫 UA 填写
```
(http.host eq "<前端域名,如xeu.life>" and http.user_agent contains "Googlebot")
```
重写路径设置为 `Dynamic`,值为:
```
concat("/seo",http.request.uri.path)
```
`保留查询`
选择`保留查询`

参考配置截图:
![转换规则](https://github.com/OXeu/Rin/assets/36541432/657e9546-1dc0-4390-9bfc-5d3eb725e792)

点击部署,即可完成 SEO 配置。
点击部署,即可完成 SEO 配置。

0 comments on commit e120d5a

Please sign in to comment.