1
0
mirror of https://gitee.com/tawords/tawords-docs synced 2025-01-10 11:28:13 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

2021.08.18 small changes

This commit is contained in:
程序员小墨 2021-08-18 23:36:42 +08:00
parent a3ac821d10
commit 9c900ecaad
3 changed files with 23 additions and 9 deletions

View File

@ -36,11 +36,11 @@
| 背Ta单词 | 网址 | | 背Ta单词 | 网址 |
|------|------| |------|------|
| 代码仓库 | <a href="https://gitee.com/only4/tawords/" target="_blank">Gitee推荐</a> <a href="https://github.com/only4/tawords/" target="_blank">GitHub暂未上线</a> | | 代码仓库 | <a href="https://gitee.com/tawords/tawords/" target="_blank">Gitee推荐</a> <a href="https://github.com/tawords/tawords/" target="_blank">GitHub暂未上线</a> |
| 项目主页(暂未上线) | <a href="https://tawords.com/" target="_blank">tawords.com</a> | | 官方网站 | <a href="https://tawords.com/" target="_blank">tawords.com</a> |
| 应用中心(暂未上线) | <a href="https://app.tawords.com/" target="_blank">app.tawords.com</a> | | 应用中心(暂未上线) | <a href="https://app.tawords.com/" target="_blank">app.tawords.com</a> |
| 演示站点(暂未上线) | <a href="https://demo.tawords.com/" target="_blank">demo.tawords.com</a> | | 演示站点(暂未上线) | <a href="https://demo.tawords.com/" target="_blank">demo.tawords.com</a> |
| 社区(暂未上线) | <a href="https://club.tawords.com/" target="_blank">club.tawords.com</a> | | 社区 | <a href="https://club.tawords.com/" target="_blank">club.tawords.com</a> |
| 官方运营网站 | <a href="https://reciteword.com/" target="_blank">reciteword.com</a> | | 官方运营网站 | <a href="https://reciteword.com/" target="_blank">reciteword.com</a> |
------------ ------------

View File

@ -87,8 +87,8 @@
- **七、背Ta单词内部开发文档** - **七、背Ta单词内部开发文档**
- [安装升级向导 官网接口](/manual/internal/deployment-wizard) - [安装升级向导 官网接口](/manual/internal/deployment-wizard)
- [官网首页伪静态配置规则](/manual/internal/pseudo-static)
- [检查SSL证书过期时间[PHP]](/manual/internal/check-cert) - [检查SSL证书过期时间[PHP]](/manual/internal/check-cert)
- [官网首页伪静态配置规则](/manual/internal/pseudo-static)
- **八、其他** - **八、其他**

View File

@ -19,22 +19,36 @@ location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project) #
> 2021.08.18更新 > 2021.08.18更新
http跳转httpswww跳转@;访问二级域名指向网站的二级路径 http跳转https
```nginx ```nginx
# http跳转https # http跳转https
if ($server_port !~ 443){ if ($server_port !~ 443){
rewrite ^(/.*)$ https://$host$1 permanent; rewrite ^(/.*)$ https://$host$1 permanent;
} }
```
www跳转@
```nginx
# $host = www.reciteword.com
# $1 = reciteword.com
# $request_uri = 请求参数
# return 301 https://reciteword.com$request_uri;
# 👇www跳转@ # 👇www跳转@
if ($host ~* "^www\.(.*?\..*?)$") # if ($host = 'www.reciteword.com') if ($host ~* "^www\.(.*)$")
{ {
# $host = www.reciteword.com return 301 https://$1$request_uri;
# $1 = reciteword.com
return 301 https://$1; # https://reciteword.com$request_uri;
} }
```
-----
【以下弃用】
访问二级域名指向网站的二级路径纯静态网页可以PHP页面会出404 Not Found
```nginx
location ~ { location ~ {
index index.php index.html index.htm; index index.php index.html index.htm;