A
A
Alexander Petrov2016-09-15 12:35:02
1C-Bitrix
Alexander Petrov, 2016-09-15 12:35:02

How to specify add. parameters in 1c-bitrix?

There is, for example, this link: www.agrcomp.ru/catalog/category-vintovie-compresso...
It is processed through the Processing Rule like this: #^/catalog/category-([a-zA-Z-_0- 9]*)#
BUT! When this link is opened via Yandex direct, the parameter is added: www.agrcomp.ru/catalog/category-vintovie-compresso... and the link naturally breaks. It is necessary to make a processing rule that will take this moment into account.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2016-09-15
@Mirkom63

I usually write like this: #^/services/([a-z0-9\-]+)/(\?.*|)$#
construction (\?.*|) solves your problems, at the end or any get parameters or nothing

S
Sergey, 2016-09-15
@gangstarcj

You need to add a slash at the end in the rule
#^/catalog/category-([a-zA-Z-_0-9]*)/#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question