He's been doing the development in a subdirectory of the site ("new") and testing by going to http://www.mainsite.com/new/ (not a real link, so don't click on it). I observed that he had links in his development that were http://www.mainsite.com/new/whatever/page.php instead of ../whatever/page.php, that is to say, absolute rather than relative, and commented to my client that that might create problems when he tried to move it. It had already created problems when he moved it, for reasons that I never figured out, from "test" directory to "new" directory.
He "went live" over the weekend, but instead of moving the new files to the root directory, he simply put
Code: Select all
header('Location: http://www.mainsite.com/new/');
I have login traps througout the site which are,
Code: Select all
if (!isset($_SESSION['regownr']))
{ header("Location:../../index.php");
exit; // kick them back to main page
}
Which will result in a double redirect. Is that going to be a problem? In other cases the redirect is not to index.php, but is to cportal.php which is definitely a problem. I can put a redirect in that one as well, but how big of an issue is this whole thing, with the actual site not being in the "public root directory" but in a subdirectory with redirection?