<?php
// Test script to debug redirect
header('Content-Type: application/json');
echo json_encode([
    'success' => true,
    'message' => 'Test redirect',
    'redirect_url' => '/rcp/pages/dashboard.php',
    'debug' => [
        'web_base' => defined('WEB_BASE') ? WEB_BASE : 'undefined',
        'server_host' => $_SERVER['HTTP_HOST'] ?? 'unknown',
        'current_time' => date('Y-m-d H:i:s')
    ]
]);
?>