D
D
DmitrySmirnov20072020-01-19 17:05:07
1C-Bitrix
DmitrySmirnov2007, 2020-01-19 17:05:07

How to set up urlrewrite.php?

I'm trying to enter it like this:

array(
    "CONDITION" => "#^/blog/([^.]+)/([^.]+)/\\??(.*)?#",
    "RULE" => "SECTION_CODE=\$1&ELEMENT_CODE=\$2",
    "ID" => "",
    "PATH" => "/blog/index.php",
  )

the section page /blog/section/ is not displayed, the entry page /blog/section/zapis/ is displayed. Who can help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Savrasov, 2020-01-20
@alcorn

1. You don't need to escape $1
2. What it finds on the /blog/index.php page, if it's a standard component, then there may be a problem in it.
3. Are there any other rules above that may work earlier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question