Answer the question
In order to leave comments, you need to log in
How to set up the correct operation of 404 in Bitrix?
For example, there is a site site.ru
There is an article with the address site.ru/article/article-name
If you enter site.ru/fdfdggg in the address bar, then everything is OK, it will redirect to 404,
and if you enter site.ru/article/article- name/fdfdggg then a link opens with the article site.ru/article/article-name
How to set up the correct operation of 404 in Bitrix?
Answer the question
In order to leave comments, you need to log in
I'll answer myself. In my case, the problem was solved by adding a rule to .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question