微课堂pc端的时候需要用到伪静态,要不然打开课堂首页或者其余栏目的时候提示404错误,所以这里要注意一下
至于伪静态这里很好办的,我们推荐微信魔方一般是使用linux下安装宝塔软件配置apache的引擎环境,所以只需要把下列的伪静态规则放在根目录下的.htacces文件内即可默认支持
<IfModule mod_rewrite.c> 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] </IfModule>
至于其他的web引擎我这里也给出答案,大家自己根据自己情况配置
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;
IIS7服务器(如果不会配置的请勿使用iis服务器):IIS7服务器伪静态规则和Apache服务器伪静态规则一样,请自行配置