Home  >  Article  >  Backend Development  >  .htaccess 小弟我写的重定向如何不起作用

.htaccess 小弟我写的重定向如何不起作用

WBOY
WBOYOriginal
2016-06-13 12:46:27740browse

.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

为什么我的新写的没作用??应该怎么写?

.htaccess
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn