mirror of
				https://gitee.com/tawords/tawords-docs
				synced 2025-11-04 14:13:11 +08:00 
			
		
		
		
	2021.08.18 small changes
This commit is contained in:
		@@ -36,11 +36,11 @@
 | 
			
		||||
 | 
			
		||||
| 背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://tawords.com/" target="_blank">tawords.com</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://app.tawords.com/" target="_blank">app.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> |
 | 
			
		||||
 | 
			
		||||
------------
 | 
			
		||||
 
 | 
			
		||||
@@ -87,8 +87,8 @@
 | 
			
		||||
- **七、背Ta单词内部开发文档**
 | 
			
		||||
 | 
			
		||||
    - [安装升级向导 官网接口](/manual/internal/deployment-wizard)
 | 
			
		||||
    - [官网首页伪静态配置规则](/manual/internal/pseudo-static)
 | 
			
		||||
    - [检查SSL证书过期时间[PHP]](/manual/internal/check-cert)
 | 
			
		||||
    - [官网首页伪静态配置规则](/manual/internal/pseudo-static)
 | 
			
		||||
 | 
			
		||||
- **八、其他**
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -19,22 +19,36 @@ location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project)                     #
 | 
			
		||||
 | 
			
		||||
> 2021.08.18更新
 | 
			
		||||
 | 
			
		||||
http跳转https;www跳转@;访问二级域名指向网站的二级路径
 | 
			
		||||
http跳转https
 | 
			
		||||
 | 
			
		||||
```nginx
 | 
			
		||||
# http跳转https
 | 
			
		||||
if ($server_port !~ 443){
 | 
			
		||||
  rewrite ^(/.*)$ https://$host$1 permanent;
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
www跳转@
 | 
			
		||||
 | 
			
		||||
```nginx
 | 
			
		||||
# $host        = www.reciteword.com
 | 
			
		||||
# $1           = reciteword.com
 | 
			
		||||
# $request_uri = 请求参数
 | 
			
		||||
# return 301 https://reciteword.com$request_uri;
 | 
			
		||||
 | 
			
		||||
# 👇www跳转@
 | 
			
		||||
if ($host ~* "^www\.(.*?\..*?)$") # if ($host = 'www.reciteword.com')
 | 
			
		||||
if ($host ~* "^www\.(.*)$")
 | 
			
		||||
{
 | 
			
		||||
  # $host = www.reciteword.com
 | 
			
		||||
  # $1 = reciteword.com
 | 
			
		||||
  return 301 https://$1; # https://reciteword.com$request_uri;
 | 
			
		||||
  return 301 https://$1$request_uri;
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
-----
 | 
			
		||||
 | 
			
		||||
【以下弃用】
 | 
			
		||||
 | 
			
		||||
访问二级域名指向网站的二级路径(纯静态网页可以,PHP页面会出404 Not Found)
 | 
			
		||||
 | 
			
		||||
```nginx
 | 
			
		||||
location ~ {
 | 
			
		||||
  index index.php index.html index.htm;
 | 
			
		||||
 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user