Destoon 7.0 手机版伪静态规则显示error loading page的解决方法(含各类服务器系统)

日期: 2019-04-14 11:25:48 人气: - 评论: 0

Destoon 7.0 手机版伪静态规则不生效的error loading page解决方法

destoon6.0/7.0手机版伪静态规则不生效,提示Error Loading,destoon采集专家的解决方法是替换新的伪静态规则,

具体解决方法如下:

【推荐使用二级域名进行绑定手机端的目录,这样对网站来说,比较好。】

经过测试,受不同服务器软件版本、是否绑定二级域名等因素影响,不同服务器对规则的解析存在差异。


以下为各服务器伪静态规则的两种写法,如果第一条写法不生效,试试第二条写法。


通常情况,第一种写法适合不绑定二级域名,第二种写法适合绑定二级域名。


手机版本属于特殊的独立站点,建议有条件的用户尽量绑定二级域名。


Apache

RewriteRule ^(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5
RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ index.php?moduleid=$1&catid=$3&itemid=$3&page=$4


Nginx

rewrite ^/(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /$1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5 last;
rewrite ^/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /index.php?moduleid=$1&catid=$2&itemid=$3&page=$4 last;

IIS6

RewriteRule ^(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?moduleid=$2&catid=$3&itemid=$4&&page=$5
RewriteRule ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ index\.php\?moduleid=$1&catid=$2&itemid=$3&&page=$4

IIS7+

<match url="^(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$" />
<action type="Rewrite" url="{R:1}/index.php?moduleid={R:2}&amp;catid={R:3}&amp;itemid={R:4}&amp;page={R:5}"/>
<match url="^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$" />
<action type="Rewrite" url="index.php?moduleid={R:1}&amp;catid={R:2}&amp;itemid={R:3}&amp;page={R:4}"/>

Zeus

match URL into $ with ^(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$
if matched then 
set URL = $1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5
endif
match URL into $ with ^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$
if matched then 
set URL = index.php?moduleid=$1&catid=$2&itemid=$3&page=$4
endif