去评论
dz插件网

大神们,帝国CMS内容怎么改写URL啊 伪静态老是信息不存在

逝水年华
2022/07/31 20:40:45
大神们,帝国CMS内容怎么改写URL啊 伪静态老是信息不存在


rewrite ^/([0-9a-zA-Z/]+)/([0-9]+)\.html$ /e/action/show.php?classid=$1&id=$2; 用这个就是信息不存在(如:baidu.com/app/1.html)

用下面的只能第一个33生效,重复的第二个classid起app就信息不存在 如后面两个yxgl rjjc两个没重复就可以正常打开

rewrite ^/app/([0-9]+)\.html$ /e/action/show.php?classid=33&id=$1;
rewrite ^/app/([0-9]+)\.html$ /e/action/show.php?classid=35&id=$1;
rewrite ^/app/([0-9]+)\.html$ /e/action/show.php?classid=37&id=$1;
rewrite ^/app/([0-9]+)\.html$ /e/action/show.php?classid=46&id=$1;
rewrite ^/app/([0-9]+)\.html$ /e/action/show.php?classid=51&id=$1;
rewrite ^/game/([0-9]+)\.html$ /e/action/show.php?classid=16&id=$1;
rewrite ^/game/([0-9]+)\.html$ /e/action/show.php?classid=17&id=$1;
rewrite ^/game/([0-9]+)\.html$ /e/action/show.php?classid=18&id=$1;
rewrite ^/game/([0-9]+)\.html$ /e/action/show.php?classid=19&id=$1;
rewrite ^/game/([0-9]+)\.html$ /e/action/show.php?classid=21&id=$1;
rewrite ^/game/([0-9]+)\.html$ /e/action/show.php?classid=23&id=$1;
rewrite ^/yxgl/([0-9]+)\.html$ /e/action/show.php?classid=2&id=$1;
rewrite ^/rjjc/([0-9]+)\.html$ /e/action/show.php?classid=9&id=$1;