. Htaccess why does the redirection I wrote not work with RewriteRule & nbsp; ^ products/list/([0-9] +) & nbsp; products/list. php? Category_id = $1 & amp; % {QUERY_STRING} & n. htaccess
RewriteRule ^ products/list/([0-9] +) products/list. php? Category_id = $1 & % {QUERY_STRING} [L]
This redirection was originally implemented. after the annotation is made, links like ***/products/list/10 won't be accessible.
Then I wrote a new
RewriteRule ^ products/list/category_id/(0-9] +)/parent_category/(0-9] +) products/list. php? Category_id = $1 & parent_category = $2 [L]
Is to put products/list? Category_id = 37 & parent_category = 35 to products/list/category_id/37/parent_category/35
Why is my new writing ineffective ?? What should I do? . Htaccess shared:
------ Solution --------------------
The numbers are wrong. (0-9] +) it should be ([0-9] +)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.