Destoon V6.0手机版伪静态规则不生效的error loading page解决方法
2016-05-28 14:20
267 查看
V6.0手机版伪静态规则不生效,提示Error Loading,官方给出的解决方法是替换新的伪静态规则,具体解决方法如下:
【推荐使用二级域名进行绑定手机端的目录,这样对网站来说,比较好。】
经过测试,受不同服务器软件版本、是否绑定二级域名等因素影响,不同服务器对规则的解析存在差异。
以下为各服务器伪静态规则的两种写法,如果第一条写法不生效,试试第二条写法。
通常情况,第一种写法适合不绑定二级域名,第二种写法适合绑定二级域名。
手机版本属于特殊的独立站点,建议有条件的用户尽量绑定二级域名。
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}&catid={R:3}&itemid={R:4}&page={R:5}"/>
复制代码
<match url="^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$" />
<action type="Rewrite" url="index.php?moduleid={R:1}&catid={R:2}&itemid={R:3}&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
复制代码
【推荐使用二级域名进行绑定手机端的目录,这样对网站来说,比较好。】
经过测试,受不同服务器软件版本、是否绑定二级域名等因素影响,不同服务器对规则的解析存在差异。
以下为各服务器伪静态规则的两种写法,如果第一条写法不生效,试试第二条写法。
通常情况,第一种写法适合不绑定二级域名,第二种写法适合绑定二级域名。
手机版本属于特殊的独立站点,建议有条件的用户尽量绑定二级域名。
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}&catid={R:3}&itemid={R:4}&page={R:5}"/>
复制代码
<match url="^([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$" />
<action type="Rewrite" url="index.php?moduleid={R:1}&catid={R:2}&itemid={R:3}&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
复制代码
相关文章推荐
- oracle转mysql总结
- io加强
- 20个代码生成器框架
- 【iOS】build diff: /../Podfile.lock: No such file or directory
- CCScrollView注意事项
- Node.js中文API
- scala中的偏(部分)应用函数和偏函数的区别
- 每天刷个算法题20160523:骑士巡游的递归转非递归解法
- lua调试器与编辑器开源项目luacode(源自decoda)
- 机器人学 —— 轨迹规划(Sampling Method)
- LinkedHashMap的使用
- poj 2771 Guardian of Decency(最大独立集)
- PMP-gossip-02
- 将QT5.6集成至VS2015
- php array_flip() 删除数组重复元素
- 定义分数的一目运算+和-,分别代表分数取正和求反,将“按位取反运算符”~重载为分数的求倒数运算。
- Handler
- 常量的存在和获取
- 关于自定义view的那点事
- 用文言文翻译网络流行语!~张润萌