Doyley Posted November 17, 2008 Share Posted November 17, 2008 Hi guys, I think I have my head up my rear end or something. http://www.leagues.athosts.co.uk/index.php Click on Manager down the left ... it's getting redirected to an old domain of ours. It's probably something really simple but I can't see it. Cheers Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted November 17, 2008 Share Posted November 17, 2008 I can't click anything... And I can't see it either because you haven't shown any code. My bad, had my JavaScript disabled because I was testing my site without JavaScript. Anyways... I'm guessing it's either something to do with your JavaScript or something to do with the page that you have it set going to. We need to see some code though. Quote Link to comment Share on other sites More sharing options...
Doyley Posted November 17, 2008 Author Share Posted November 17, 2008 Righto... get ready to be spammed with code ;-) Javascript bit... <a href="/manager"><td onclick="document.location='/manager';" class="newleftbox" onmouseover="this.className='newleftboxon'" onmouseout="this.className='newleftbox'"> Managers Login</td></a> The manager/index.php page... <?php include("../includes/header.php"); echo "<h1><center>Manager Login</center></h3>\n"; echo "<br /><br />\n"; echo "<form method=\"post\" action=\"login.php\">\n"; echo "<table border=\"0\" align=\"center\">\n"; echo "<tr>\n"; echo "<td><b>Username</b></td>\n"; echo "<td><input type=\"text\" name=\"uname\" /></td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td><b>Password</b></td>\n"; echo "<td><input type=\"password\" name=\"pass\" /></td>\n"; echo "</tr>\n"; echo "<tr><td> </td></tr>\n"; echo "<tr>\n"; echo "<td colspan=\"2\" align=\"center\">\n"; echo "<input type=\"submit\" value=\"Login\" />\n"; echo "</td>\n"; echo "</tr>\n"; echo "</table>\n"; echo "</form>\n"; echo "<br /><br />\n"; echo "<center>\n"; echo "<a href=\"register.php\"><b>Register</b></a>\n"; echo "<br /><br />\n"; echo "<a href=\"forgotpass.php\"><b>Forgot Password</b></a>\n"; include("../includes/footer.php"); ?> I'll post the header.php and footer.php file if requested but I don't think there is a problem with them because they are included on all pages. The problem only occurs on the manager page. I'm thinking it's some sort of apache configuration problem now because if you go directly to the manager/index.php page it works fine. Cheers! Quote Link to comment Share on other sites More sharing options...
Doyley Posted November 17, 2008 Author Share Posted November 17, 2008 Yup I was right, I added a parked domain over the old domain thinking that would work. Nope. So I edited httpd.conf and removed all references to the old domain. Thanks all. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.