<?php

$servername = "localhost";
$username = "localhost";
$password = "4ddbcTSRXWDHQjpS";
$dbname = "posts";

$conn = new mysqli($servername, $username, $password, $dbname);

	if ($conn->connect_error){
		die ("Connection failed: " . $conn->connect_error);
		
	}

?>

<?php
	
		$servername = "localhost";
		$username = "localhost";
		$password = "4ddbcTSRXWDHQjpS";
		$dbname = "posts";

		$conn = new mysqli($servername, $username, $password, $dbname);

		if ($conn->connect_error){
			die ("Connection failed: " . $conn->connect_error);
		
		}
		

?>

Remove redirect, restrict access in .htaccess
Remove redirect, restrict access in .htaccess
