Forbidden
You don't have permission to access /nl/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.33 Server at www.dinkuhosting.com Port 80
ok, so here's my situation:
I found my original php redirect script which looks like a modified version of what we were discussing above, just uses variables so my list of redirects can get real long real quick with minimal effort - here it is...
<?
$Domain=strtolower($_SERVER["HTTP_HOST"]);
Redirect("www.dinkuhosting.com", "http://www.dinkuhosting.com/index.php");
Redirect("dinkuhosting.com", "http://www.dinkuhosting.com/index.php");
Redirect("www.dinkuhosting.nl","http://www.dinkuhosting.nl/nl/");
Redirect("dinkuhosting.nl","http://www.dinkuhosting.nl/nl/");
header("Location: home.html");
function Redirect( $hostname, $url )
{
global $Domain;
if ( stristr( $Domain, $hostname ) != FALSE )
{
header("Location: $url\n");
exit;
}
}
?>
and I changed my .htaccess file to read DirectoryIndex redirect.php instead of index.php so now visitors hit my redirect.php page first and if they are asking for dinkuhosting.com they are sent to dinkuhosting.com/index.php - if they are asking for dinkuhosting.nl they get sent to dinkuhosting.nl/nl
THE PROBLEM is now I get the above-mentioned "Forbidden" error when I being sent to this page.
What do I do?