Thanks, I will try your code.
I also found a workaround, that I placed in login.php.
I wonder which code is safer, probably my if statement,
which uses THREADS code and is PHP independent.
And your redirect code..
My workaround for the login.php page was:
after:
code:
// --------------------------------
// require the proper language file
require "languages/$w3t_language/login.php";
insert in login.php:
code:
// HACK URL correction
if (!stristr(find_environmental('HTTP_REFERER'),"www.")) {
echo <<<REDIR
<html>
<head>
<meta http-equiv="Refresh" content="1;url={$config['phpurl']}/login.php">
</head>
<body>
</body>
</html>
REDIR;
exit; }
// Hack end