织梦系统dedecms PC站和移动站匹配规则怎么写?

织梦系统dedecms PC站和移动站匹配规则怎么写?

 

使用正则匹配符号(\d+)或(\w+)来表示路径或参数。 (\d+) 代表纯数字字符串,(\w+) 代表字母数字下划线组成的字符串。

 

首页:

http://www.nzw6.com/([a-z]+)

http://www.nzw6.com/m/${1}

 

列表页:

http://www.nzw6.com/web/index.html

 

PC站目录:http://www.nzw6.com/(\w+)/list_(\d+).html

移动目录:http://www.nzw6.com/m/list.php?tid=${2}

 

内容页:

http://www.nzw6.com/web/181.html

 

PC内容:http://www.nzw6.com/(\w+)/(\d+).html

移动内容:http://www.nzw6.com/m/view.php?aid=${2}

 

单页文档:

http://www.nzw6.com/process.html

 

PC单页:http://www.nzw6.com/(\w+).html

移动单页:http://www.nzw6.com/m/${1}.php

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容