if ($modx->context->key == 'mgr') { return; } $curid = &$modx->resource->id; if($curid == *ID старого ресурса*) { $url = $modx->makeUrl(*ID нового ресурса*); $modx->sendRedirect($url,array('responseCode' => 'HTTP/1.1 301 Moved Permanently')); }
Плагин редиректов в зависимости от id
MODX Revolution
10-04-2023