使用方式:
1.上传插件到插件目录,安装
2.修改cmf/controller/HomeBaseController.php
找到fetch函数,在return $content添加钩子
++ Hook::listen('front_view_filter', $content);
return $content;
3.配置url rewrite 就是根目录的.htacesss文件,添加其它站点映射
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^fr.xxx.com$
RewriteRule ^(.*)$ https://fr.xxx.com/$1 [L,R=301]
ThinkCMF模板插件交流群:550851374 ,领取阿里云1000通用代金券