微课堂 PC 版不带后台不支持单独使用,PC 版所有数据调用公众号版,使用 PC 版前应搭建好公众号版。
1、覆盖小程序目录
服务器路径:./install_we7/
覆盖路径:/data/www//weike/addons/
导入数据库:./install_we7/update.sql
本地升级微课堂 V2 程序
2、购买安装好了微课堂 PC 版后,进入微擎后台的“平台入口”,点击“新建平台”,选择“新建 PC”。
3、填写“PC 名称”和“描述”后,点击下一步。
4、没有设置权限的用户直接点击“完成”。
5、“支付参数”无需设置,系统已自动调用公众号版的支付参数。
6、点击“数据同步~ 添加”,选择您的公众号进行同步。
7、点击“伪静态”设置访问模块。
8、点击“添加访问模块”。
9、Apache 服务器配置伪静态
9-1、Apache 1.x 的用户请检查 conf/httpd.conf 中是否存在如下两段代码:
LoadModule rewrite_module libexec/mod_rewrite.so
AddModule mod_rewrite.c
9-2、Apache 2.x 的用户请检查 conf/httpd.conf 中是否存在如下一段代码:
LoadModule rewrite_module modules/mod_rewrite.so
9-3、后在配置文件 **(通常就是 conf/httpd.conf 或者 conf/extra/httpd-vhosts.conf)** 中加入如下代码。此时请务必注意,如果网站使用通过虚拟主机来定义,请务必加到虚拟主机配置中去,如果加在虚拟主机配置外部将可能无法使用。改好后然后将 Apache 重启。
规则如下:
RewriteEngine On
RewriteBase /
RewriteRule ^([0-9]+)-([0-9]+).html$ /app/index.php?i=$1&a=webapp&c=entry&eid=$2%1 [L,QSA]
RewriteRule ^([0-9]+)/$ /app/index.php?i=$1&a=webapp&c=entry&do=index&m=fy_lessonv2 [L,QSA]
RewriteRule ^([0-9]+)/([0-9a-zA-Z]+).html$ /app/index.php?i=$1&a=webapp&c=entry&do=$2&m=fy_lessonv2 [L,QSA]
10、Nginx 配置伪静态
规则如下:
rewrite ^/([0-9]+)-([0-9]+).html$ /app/index.php?i=$1&a=webapp&c=entry&eid=$2;
rewrite ^/([0-9]+)/$ /app/index.php?i=$1&a=webapp&c=entry&do=index&m=fy_lessonv2;
rewrite ^/([0-9]+)/([0-9a-zA-Z]+).html$ /app/index.php?i=$1&a=webapp&c=entry&do=$2&m=fy_lessonv2;
11、IIS7 服务器(如果不会配置的请勿使用 iis 服务器)
IIS7 服务器伪静态规则和 Apache 服务器伪静态规则一样,请自行配置
本文转自 90root 博客。