This is my php code
<?php
$login = new Login();
if ($login->isUserLoggedIn() == true) {
header("Location:logged in.php");
}else{
header("location:notloggedin.php");
exit;
}
?>
Htaccess I know is where the issue lies but I have tried rewrite and redirect neither of which worked. I am totally new to not php and htaccess so even just pointing me in the right direction would be much appreciated.
Htacces says
<files ~"\.(htaccess|php)$">order allow ,denydeny from all </files>