My problem is if the user tries to see mysite.com/something/page.php
and finds this script:
Code: Select all
if (!isset($_SESSION['userName']) && !isset($_SESSION['userId']))
{
header('Location: http://www.mysite.com/login.php');
exit();
}I don't have absolut urls in the login.php script meaning that any images used on that page are broken and won't load, because they have the wrong path.
Is there a quick fix to this problem?
Do I need to change everything to absolut urls or can I do something to phisically jump to mysite.com/login.php?