Answer the question
In order to leave comments, you need to log in
Bitrix ignores extra characters at the end of url in a complex component, how to configure 404 processing?
Bitrix ignores extra characters at the end of the url in the complex component and does not display a logical 404 not found for this situation. The component parameters affecting this factor indicated:
"SHOW_404" => "Y", "STRICT_SECTION_CHECK" => "Y", "SHOW_404" => "Y",
also tried to catch the error using the "clumsy" method through init.php with this function
AddEventHandler("main", "OnEpilog", "Redirect404");
function Redirect404() {
if(
!defined('ADMIN_SECTION') &&
defined("ERROR_404")
){
global $APPLICATION;
$APPLICATION->RestartBuffer();
CHTP::SetStatus("
and still futile.
/page1/page2/abyrvalg/
will essentially open as
/page1/page2/
What could be the problem, tell me.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question