dedecms 全站MIP插件

dedecms MIP插件

  1. MIP(Mobile Instant Page - 移动网页加速器),是一套应用于移动网页的开放性技术标准。通过提供MIP-HTML规范、MIP-JS运行环境以及MIP-Cache页面缓存系统,实现移动网页加速。

  2. 需要配置推送API和清理TOKEN还有你的MIP URL

  3. 之后插件文件在本文章进行更新和修复

>>>>>>>>>>>>插件下载:https://www.apizl.com/archives/view-134288-1.html <<<<<<<<<<<<<<<

效果截图:

dedecms MIP插件爱资料-发布

dedecms MIP插件爱资料-发布dedecms MIP插件爱资料-发布dedecms MIP插件爱资料-发布

如何配置:

dedecms MIP插件爱资料-发布

推送API URL:

dedecms MIP插件爱资料-发布

清理TOKEN:

dedecms MIP插件爱资料-发布

>>>>>>>>>>>>>>>>注意问题:<<<<<<<<<<<<<<<<<<

你可以使用二级域名或者二级栏目作为MIP。

首先你要配置后台  站点根网址 cfg_basehost

如果访问了mip目录不能显示页面,那就需要把模板中的自定义方法改成自己的!

需要新增扩展方法 文件路径:/include/extend.func.php 

1

2

3

4

5

6

7

8

function mipUrl($url)

{

    $url str_replace('www.apizl.com''mip.apizl.com'$url);

    $url str_replace('www.apizl.com''mip.apizl.com'$url);

    $url str_replace('/archives'''$url);

    $url str_replace('/category'''$url);

    return $url;

}

改成自己的URL

如果生成地址不对就需要手动修改:

1

2

3

4

if ($type == 'push_list') {

}

if ($type == 'delete_list') {

}

需要自己追加自己的URL地址。

如下提供IIS伪静态规则:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

<rule name="已导入的规则 1">

 <match url="^list-([0-9]+)\.html$" ignoreCase="false" />

 <action type="Rewrite" url="/list.php?tid={R:1}" appendQueryString="false" />

</rule>

<rule name="已导入的规则 2">

 <match url="^list-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />

 <action type="Rewrite" url="/list.php?tid={R:1}&amp;totalresult={R:2}&amp;PageNo={R:3}" appendQueryString="false" />

</rule>

<rule name="已导入的规则 3">

 <match url="^view-([0-9]+)-1\.html$" ignoreCase="false" />

 <action type="Rewrite" url="/view.php?arcID={R:1}" appendQueryString="false" />

</rule>

<rule name="已导入的规则 4">

 <match url="^view-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />

 <action type="Rewrite" url="/view.php?aid={R:1}&amp;pageno={R:2}" appendQueryString="false" />

</rule>

原文地址:https://www.apizl.com/archives/view-134289-1.html

猜你喜欢

转载自blog.csdn.net/moxun2011/article/details/81231508