get_result ( ); $row = $result->fetch_assoc ( ); if ( ! $row ) { http_response_code ( 404 ); include ( 'errors/404.html' ); exit; } else { include ( 'templates/redirect.html' ); echo ( '' ); } } else { header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) ); } ?>