[QUOTE]Alexey Voitov wrote:
Good day! The next task is.
It is necessary to show a 404 page for a non-existent element of the infoblock section.
Example:
[URL=https://site.ru/razdel1/element45/]https://site.ru/razdel1/element45/[/URL] - where element45 is an element of section 2, ( [URL=https://site.ru/razdel2/element45/)]https://site.ru/razdel2/element45/)[/URL] . Those. if i'm in url section [URL=https://site.ru/razdel1]https://site.ru/razdel1[/URL] / I substitute the symbolic code of an element from another section (element45), I need to display a 404 page. At the moment [URL=https://site.ru/razdel1/element45/]https://site.ru/razdel1/element45/ [/URL][URL=https://www.facetimeapp.ltd/facetime-for-pc-windows-download/]FaceTime PC[/URL] gives 404 in the title, but displays "Element not found" on the page itself.
It is noteworthy that if I just enter something after the section, for example [URL=https://site.ru/razdel1/]https://site.ru/razdel1/[/URL] asdasdasd /, then everything works and the page displays page 404.
PS The complex component bitrix: news is used. The checkbox for displaying a 404 page is set in the component settings.[/QUOTE]
You've spent a lot of time making sure your website is user-friendly, has a descriptive navigation, is organized in a way that makes sense, but what if someone makes a typo when typing in a URL? What if another website links to a page you don't have any longer? What will the user see on your 404 error page?
Good day! The next task is.
It is necessary to show a 404 page for a non-existent element of the infoblock section.
Example:
[URL=https://site.ru/razdel1/element45/]https://site.ru/razdel1/element45/[/URL] - where element45 is an element of section 2, ( [URL=https://site.ru/razdel2/element45/)]https://site.ru/razdel2/element45/)[/URL] . Those. if i'm in url section [URL=https://site.ru/razdel1]https://site.ru/razdel1[/URL] / I substitute the symbolic code of an element from another section (element45), I need to display a 404 page. At the moment [URL=https://site.ru/razdel1/element45/]https://site.ru/razdel1/element45/ [/URL][URL=https://www.facetimeapp.ltd/facetime-for-pc-windows-download/]FaceTime PC[/URL] gives 404 in the title, but displays "Element not found" on the page itself.
It is noteworthy that if I just enter something after the section, for example [URL=https://site.ru/razdel1/]https://site.ru/razdel1/[/URL] asdasdasd /, then everything works and the page displays page 404.
PS The complex component bitrix: news is used. The checkbox for displaying a 404 page is set in the component settings.[/QUOTE]
You've spent a lot of time making sure your website is user-friendly, has a descriptive navigation, is organized in a way that makes sense, but what if someone makes a typo when typing in a URL? What if another website links to a page you don't have any longer? What will the user see on your 404 error page?