按照thinkcmfx上面的规则需求设置"添加URL规则"时不起作用,怎么回事?
列出常用的优化方案:
portal/list/index?id=1 news http://demo.thinkcmf.com/news.html portal/list/index?id=2 discovery http://demo.thinkcmf.com/discovery.html portal/page/index?id=2 contacts http://demo.thinkcmf.com/contacts.html portal/page/index?id=14 about http://demo.thinkcmf.com/about.html portal/article/index article/:id\d http://demo.thinkcmf.com/article/1.html portal/list/index list/:id\d http://demo.thinkcmf.com/list/1.html
按上面的设置了为什么不起作用呢?原因是在thinkcmfx后台输入“\”时需要加一个转换字符,输入“\”时再加一个“\”,写成“\\”就可以了。
如果这方法保存后变也了list/:idd那就按下面这样写