D
D
denism3002019-08-07 20:43:01
1C-Bitrix
denism300, 2019-08-07 20:43:01

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

1 answer(s)
D
denism300, 2019-08-07
@denism300

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 question

Ask a Question

731 491 924 answers to any question