V
V
viktorulyushev2017-02-06 16:51:58
1C-Bitrix
viktorulyushev, 2017-02-06 16:51:58

Bitrix. Rule for processing addresses?

It is necessary to make static addresses for categories of the form:
www.site.ru/catalog/?brand=alcatel It is
necessary to do this
www.site.ru/catalog/alcatel
As I understand it, you need to add a rule to address processing? works
Or can it be done via the CNC of the infoblock?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Burlaka, 2017-02-08
@viktorulyushev

In Bitrix (will go through Apache and /urlrewrite.php ):
An example of a CNC config via nginx :

location ~* ^/catalog/([_a-zA-Z0-9-]*)/ {
    proxy_pass http://127.0.0.1:8080/catalog/?brand=$1&$args;
    proxy_redirect http://127.0.0.1:8080/ /;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Real-URL /catalog/$1/;
    proxy_set_header X-Real-ARGS $args;
  }

That is, you will receive your link directly to the backend
www.site.ru/catalog/?brand=alcatel

R
Roman Gritsuk, 2017-02-06
@winer

Article about CNC from bitrix

V
viktorulyushev, 2017-02-08
@viktorulyushev

76402804e4774a49bb2dd745dca1843b.PNG8d59d0dc88fe4f7c88df061591a340ec.PNG9b7adeb7cf9842df8fd21b2e53b1ba6c.PNG

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question