Find the login form and see where the action points to. You could also look at the page source in the browser to find it,
<form action="SOMETHING.php">
Than open that file ans search for "header" it may look like header("location: page1.php") that may be the redirect the script is using. Best i...