Answer the question
In order to leave comments, you need to log in
How to properly compose regex in htaccess for CNC directory filters?
We have a string in the url of the following form:
catalog/category/subrcategory1/subcatecory.../filter/parametr1_znachene/parametr2_znachene/parametr..._znachene/brand_name.html
How to pass the values of all parameters to the executable script?
You need something like this:
RewriteRule ^catalog/(?:.*/)?([^/]+)/filter/(?:.*/)?([^/]+)/brand_([^/]+)$ index.php?module=Storefront&category=$1&filter=$2&brand=$3 [L,QSA]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{REQUEST_URI} (групап1)(групап1)(групап1)(групап1)$
RewriteRule ^(.*) http://site.ru/index.php\?module=....\?=%1\?=%2\?=%3 [NC,L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question