[php]$home_url = ‘http://’ . $_SERVER[‘HTTP_HOST’] . dirname($_SERVER[‘PHP_SELF’]) . ‘/index.php’;
header('Location: ’ . $home_url);[/php]
The above code is from the login script and redirects to the index page. Upon utilizing the button however,
the url contains a backslash following the host name, like so: hostname/index.php
The error page says something like “cannot find server .”
When you backspace over the backslash, the index page loads fine.
I was wondering if urlencode or htmlentities comes into play here.