2385656146 发表于 2016-7-5 11:05:05

Destoon V6.0手机版伪静态规则不生效的解决方法

V6.0手机版伪静态规则不生效,提示Error Loading,官方给出的解决方法是替换新的伪静态规则,具体解决方法如下:
【推荐使用二级域名进行绑定手机端的目录,这样对网站来说,比较好。】
经过测试,受不同服务器软件版本、是否绑定二级域名等因素影响,不同服务器对规则的解析存在差异。
以下为各服务器伪静态规则的两种写法,如果第一条写法不生效,试试第二条写法。
通常情况,第一种写法适合不绑定二级域名,第二种写法适合绑定二级域名。
手机版本属于特殊的独立站点,建议有条件的用户尽量绑定二级域名。
Apache
portant; padding: 0px !important;">
    RewriteRule ^(.*)/(+)-(+)-(+)-(+)\.html$ $1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5

portant;">复制代码
portant; padding: 0px !important;">
    RewriteRule ^(+)-(+)-(+)-(+)\.html$ index.php?moduleid=$1&catid=$3&itemid=$3&page=$4

portant;">复制代码
Nginx
portant; padding: 0px !important;">
    rewrite ^/(.*)/(+)-(+)-(+)-(+)\.html$ /$1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5 last;

portant;">复制代码
portant; padding: 0px !important;">
    rewrite ^/(+)-(+)-(+)-(+)\.html$ /index.php?moduleid=$1&catid=$2&itemid=$3&page=$4 last;

portant;">复制代码
IIS6
portant; padding: 0px !important;">
    RewriteRule ^(.*)/(+)-(+)-(+)-(+)\.html(\?(.*))*$ $1/index\.php\?moduleid=$2&catid=$3&itemid=$4&&page=$5

portant;">复制代码
portant; padding: 0px !important;">
    RewriteRule ^(+)-(+)-(+)-(+)\.html(\?(.*))*$ index\.php\?moduleid=$1&catid=$2&itemid=$3&&page=$4

portant;">复制代码
IIS7+
portant; padding: 0px !important;">
   
   

portant;">复制代码
portant; padding: 0px !important;">
   
   

portant;">复制代码
Zeus
portant; padding: 0px !important;">
    match URL into $ with ^(.*)/(+)-(+)-(+)-(+)\.html$
    if matched then
    set URL = $1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5
    endif

portant;">复制代码
portant; padding: 0px !important;">
    match URL into $ with ^(+)-(+)-(+)-(+)\.html$
    if matched then
    set URL = index.php?moduleid=$1&catid=$2&itemid=$3&page=$4
    endif

portant;">复制代码

关键词:
destoon问题
destoon伪静态
destoon教程
页: [1]
查看完整版本: Destoon V6.0手机版伪静态规则不生效的解决方法