H
H
HankeTM2018-04-02 10:19:11
Nginx
HankeTM, 2018-04-02 10:19:11

How to make a redirect from without a slash to with a slash in an infoblock?

Good day!
There was a problem. I need to redirect from without slash to with slash, because now pages without slash return 404. I tried all the ways I found, but the redirect did not work. But there is also such a feature that the redirect passes correctly on the entire site, but there is no info block with the product, I looked at the info block settings and did not find the necessary options.
Maybe someone faced the same problem? Server on Nginx + PHP-FPM.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eternalfire, 2018-04-02
@HankeTM

for this, there is a urlrewrite file in Bitrix, located in the root of the site
, write processing rules like this into an array

<?
$arUrlRewrite = array(
  array(
    "CONDITION" => "#^/catalog/#",
    "RULE" => "",
    "ID" => "bitrix:catalog",
    "PATH" => "/catalog/index.php",
  )
);

everything should work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question