V
V
vovkka2018-04-16 14:53:32
Nginx
vovkka, 2018-04-16 14:53:32

How to solve the magic 404 status in bitrix?

Good afternoon! Help please, I've already tried everything :D
There is a catalog of this type:
5ad48d418f401794380157.jpeg
Its essence is that there is a root folder catalog - all products are displayed there
. Next comes the poultry meat subdirectory, it also has a turkey subdirectory, and the element itself.
The problem is that if you enter the catalog or poultry meat incorrectly, then a 404 page comes out .... the server itself gives the status 404 and everything is ok.
But when I enter the incorrect subdirectory (turkey) or the name of the product itself, instead of the status 404 and redirecting to the 404 page, I am thrown on the page with poultry meat with the status 200.
How to overcome this, I can’t understand where exactly the redirect to the root directory of the catalog goes and why 200 I looked at the root of
apache there at the very top it is written, redirect to 404
Also in the location of nginx it is worth redirecting to 404
Also I am attaching the cnc directory setting from the gear and from the admin panel
5ad48e8a7dfec572725557.jpeg5ad48e94e7527219570028.jpeg
Please help !!!!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vovkka, 2018-04-16
@vovkka

Solved the problem myself.
When calling the complex catalog component, you need to comment out the line "smart_filter" => "#SECTION_CODE_PATH#/#SMART_FILTER_PATH#/",
Perhaps there is an error somewhere in it.

N
Nikita, 2018-04-16
@Rema1ns

what about 404 settings?
is everything worth it?
5ad49c4797de6387326144.jpeg

I
I'm Yoda, 2018-04-16
@Anadi

If I understand correctly , then you need to catch 404 if the wrong section or element is specified, maybe my answer in this question will help you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question