字母正则是([a-zA-Z]+) 数字的是([0-9]+) 所以你的规则可以这样写 旧规则https://www.1111111.com/(\w+)/(\d+).html 新规则https://www.1111111.com/([a-zA-Z]+)/([0-9]+).html https://www.1111111.com/post/38583.html https://www.1111111.com/post/38581.html https://www.1111111.com/post/38579.html https://www.1111111.com/post/38577.html https://www.1111111.com/post/38576.html https://www.1111111.com/post/38575.html 我改成了已栏目文件夹名的形式: https://www.1111111.com/wenhua/38583.html https://www.1111111.com/xuexi/38581.html https://www.1111111.com/tantao/38579.html https://www.1111111.com/yuwen/38577.html https://www.1111111.com/yingyu/38576.html https://www.1111111.com/resou/38575.html 所以下面对应的url可以这样写 旧链接https://www.1111111.com/post/38583.html 新链接https://www.1111111.com/wenhua/38583.html