猿问

大佬们遇到过这个问题吗?正则表达式如何写呢?大佬们有什么好的建议?

rewrite^/news-catid-([0-9]+)\.html$/news.php?catid=$1;rewrite^/(.*)/news-catid-([0-9]+)\.html$/$1/news.php?catid=$2;这两条伪静态能合成一条吗?rewrite^/(.*)/category-catid-...
rewrite ^/news-catid-([0-9]+)\.html$ /news.php?catid=$1;rewrite ^/(.*)/news-catid-([0-9]+)\.html$ /$1/news.php?catid=$2;这两条伪静态能合成一条吗?rewrite ^/(.*)/category-catid-([0-9]+)\.html$ /$1/news.php?catid=$2;rewrite ^/(.*)/category-catid-([0-9]+)-car_brand-([0-9a-z])\.html$ /$1/news.php?catid=$2&car_brand=$3;这两条伪静态能合成一条吗?
HUX布斯
浏览 248回答 2
2回答

叮当猫咪

rewrite ^/(.*)/news-catid-([0-9]+)\.html$ /$1/news.php?catid=$2;

至尊宝的传说

rewrite ^/(.*)news-catid-([0-9]+)\.html$ (/$1)?/news.php?catid=($1|$2);
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答