connect_errno && sendResponseAndExit(500, "DATABASE NOT AVAILABLE"); $method = strtoupper($_REQUEST['_method'] ?: $_SERVER['REQUEST_METHOD']); function sendResponseAndExitIf($condition, $code, $description, $extraHeader=false, $xmlResponse=false) { if ($condition) { header("HTTP/1.1 {$code} {$description}"); if ($extraHeader) { header($extraHeader); } if ($xmlResponse) { $xmlResponse = "" . $xmlResponse; header('Content-Type: text/xml; charset=UTF-8'); header('Content-Length: ' . strlen($xmlResponse)); echo $xmlResponse; } die(); } } function xmlFormat($st) { return htmlspecialchars($st, ENT_QUOTES); } /* Iniciado por ZiTAL Ver Mensaje se me ha ocurrido algo mejor y es pasar todas las llamadas por index.php C?digo: RewriteEngine On RewriteBase /zital RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /zital/index.php [L] y trabajar con el $_SERVER['REQUEST_URI'] de php asi s? que funcionan esas paginas ;) */