Php 如何使用add_rewrite_rule函数重写url
www.ke6.com/text/month文本为类别名称,类别id为2 www.ke6.com/?cat=2&score=month 我的代码:Php 如何使用add_rewrite_rule函数重写url,php,wordpress,Php,Wordpress,www.ke6.com/text/month文本为类别名称,类别id为2 www.ke6.com/?cat=2&score=month 我的代码: add_rewrite_rule('^text/month/?','index.php?cat=2&score=month','top'); 但它不起作用。 当我访问它时,实际上它是www.ke6.com/category/text/你的永久链接结构说了什么?嗯,你读了吗?
add_rewrite_rule('^text/month/?','index.php?cat=2&score=month','top');
但它不起作用。
当我访问它时,实际上它是www.ke6.com/category/text/你的永久链接结构说了什么?嗯,你读了吗?