.htaccess 我写的重定向怎么不起作用
RewriteRule ^products/list/([0-9]+) products/list.php?category_id=$1&%{QUERY_STRING} [L]
原先的有这个重定向,注释掉后 ***/products/list/10 这样的链接就不能访问了,打开后就好使
然后我再他下面写了个新的
RewriteRule ^products/list/category_id/(0-9]+)/parent_category/(0-9]+) products/list.php?category_id=$1&parent_category=$2 [L]
就是把 products/list?category_id=37&parent_category=35 成 products/list/category_id/37/parent_category/35
为什么我的新写的没作用??应该怎么写?
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号