Answer the question
In order to leave comments, you need to log in
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
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",
)
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question