P
P
photosho2018-04-24 12:08:01
1C-Bitrix
photosho, 2018-04-24 12:08:01

Is there address redirection without "/" in Bitrix components?

In the product catalog ("bitrix.catalog" component), when requesting a page without "/" at the end of the address, a 404 error is generated. Is it possible to set up a redirect directly in the component, or should this be done only in .htaccess?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Musin, 2018-04-24
@vmpartner

It is better to do this on the server side, in your case in htaccess. But I would leave 404 as it seems to me better for SEO.
You can also do it in Bitrix by writing a rule in urlrewrite. More details here https://dev.1c-bitrix.ru/api_help/main/general/url...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question