在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:UTCMS内容管理系统开源软件地址:https://gitee.com/usualtool/UTCMS开源软件介绍:UTCMS内容管理系统介绍UsualToolCMS是基于UT框架开发的内容管理系统,简称UTCMS。UTCMS使用模块、插件、模板引擎及行为控制器构建(M.P.T.C.),适合快速开发各种类型的系统,且代码完全开源。UTCMS拥有良好的生态,各种模块、插件、模板丰富多样,应用开发更加便利。 环境支持PHP5/PHP7/PHP8等已知向上发行的版本 开启MYSQLI扩展、CURL扩展、GD库 权限以下文件/目录需要开启写入/修改权限 安装在地址栏输入:http://localhost/setup/ 开始安装 开发及管理开发者控制台:http://localhost/dev/ 对CMS进行部署和开发的可视平台 系统结构┌─assets 资源组├─class 公共函数 ├─cms CMS独立管理端├─dev 开发者开发部署平台├─home 前端交互├─jsonapi json接口├─lang 语言包├─modules 模块├─plugins 扩展插件├─setup 安装├─templete 模板│ ├─cache 缓存 │ ├─skin 模板文件├─update 更新包└─其它文件 静态WIN IIS伪静态规则使用方法:复制代码保存为web.config,放置在根目录下(IIS7及以上版本通过) <?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="UT规则 1"><match url="^([a-zA-Z]+)\.html$" ignoreCase="false" /><conditions logicalGrouping="MatchAll"><add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" /></conditions><action type="Rewrite" url="index.php?ut={R:1}&{C:1}" appendQueryString="false" /></rule><rule name="UT规则 2"><match url="^([a-zA-Z]+)-([0-9]+)\.html$" ignoreCase="false" /><conditions logicalGrouping="MatchAll"><add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" /></conditions><action type="Rewrite" url="index.php?ut={R:1}&id={R:2}&{C:1}" appendQueryString="false" /></rule><rule name="UT规则 3"><match url="^home/([a-zA-Z\-]+)\.html$" ignoreCase="false" /><conditions logicalGrouping="MatchAll"><add input="{QUERY_STRING}" pattern="^(.*)$" ignoreCase="false" /></conditions><action type="Rewrite" url="home/index.php?ut={R:1}&{C:1}" appendQueryString="false" /></rule></rules></rewrite></system.webServer></configuration> Apache伪静态规则使用方法:复制代码保存为.htaccess,放置在根目录下 <IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^([a-zA-Z]+)\.html$ index.php?ut=$1&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^([a-zA-Z]+)-([0-9]+)\.html$ index.php?ut=$1&id=$2&%1RewriteCond %{QUERY_STRING} ^(.*)$RewriteRule ^home/([a-zA-Z\-]+)\.html$ home/index.php?ut=$1&%1</IfModule> Nginx伪静态规则使用方法:复制代码加入到nginx.conf配置文件server节点中 location / {if (!-e $request_filename){rewrite ^/([a-zA-Z]+)\.html$ /index.php?ut=$1 last;rewrite ^/([a-zA-Z]+)-([0-9]+)\.html$ /index.php?ut=$1&id=$2 last;rewrite ^/home/([a-zA-Z\-]+)\.html$ /home/index.php?ut=$1 last;}} 其他未明系统伪静态规则,请参照以上代码编写。 相关开发文档官方网站:http://frame.usualtool.com |
请发表评论