兼容性调整
js/cs
2024-12-10 更新:不支持过往版本的直接升级,建议新项目使用。
如果是老项目,请删除原数据表(建议重命名以备份),然后再安装。
DROP TABLE IF EXISTS `__PREFIX__cms_category`; DROP TABLE IF EXISTS `__PREFIX__cms_content`; DROP TABLE IF EXISTS `__PREFIX__cms_position`; DROP TABLE IF EXISTS `__PREFIX__cms_banner`; DROP TABLE IF EXISTS `__PREFIX__cms_tag`;
nginx 默认文档问题
nginx
如宝塔建站的默认顺序为:index.php index.html index.htm default.php default.htm default.html。
index.php index.html index.htm default.php default.htm default.html
那么当访问 http://yourdomain.com/ 时其实是访问index.php,当访问 http://yourdomain.com/index.html 才是访问index.html。
http://yourdomain.com/
index.php
http://yourdomain.com/index.html
index.html
如开启首页静态化,并想让用户始终访问到index.html,请设置 nginx 默认文档为第一个为index.html:
server { listen 80; server_name new.ynyysc.com; index index.html index.php index.htm default.php default.htm default.html; }
如果不使用首页静态化(index.html不存在),多应用模式下,如存在app/index目录,将可能影响 http://yourdomain.com/可访问性。
app/index
http://yourdomain.com/请求或访问到默认应用,当于访问http://yourdomain.com/index。
http://yourdomain.com/index
因为think-multi-app的逻辑是存在app/index目录时,http://yourdomain.com/index 的请求都不走路由,cms系统生成的路由也失效。
think-multi-app
解决方法: /config/app.php中修改默认应用为一个不存在的应用名,如none
/config/app.php
none
`default_app` => 'none'
当然,如果你的生成路径不是 /,比如是 /cms/ 那么以上问题不存在。
/
/cms/
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
tpext.cms 内容管理系统
功能
js/cs
s 管理安装
2024-12-10 更新:不支持过往版本的直接升级,建议新项目使用。
如果是老项目,请删除原数据表(建议重命名以备份),然后再安装。
一些细节
nginx
默认文档问题如宝塔建站的默认顺序为:
index.php index.html index.htm default.php default.htm default.html
。那么当访问
http://yourdomain.com/
时其实是访问index.php
,当访问http://yourdomain.com/index.html
才是访问index.html
。如开启首页静态化,并想让用户始终访问到
index.html
,请设置nginx
默认文档为第一个为index.html
:tp6 / tp8
如果不使用首页静态化(
index.html
不存在),多应用模式下,如存在app/index
目录,将可能影响http://yourdomain.com/
可访问性。http://yourdomain.com/
请求或访问到默认应用,当于访问http://yourdomain.com/index
。因为
think-multi-app
的逻辑是存在app/index
目录时,http://yourdomain.com/index
的请求都不走路由,cms系统生成的路由也失效。解决方法:
/config/app.php
中修改默认应用为一个不存在的应用名,如none
当然,如果你的生成路径不是
/
,比如是/cms/
那么以上问题不存在。