Hello all,
Been playing around with capturing the entire URL. I dont have any problems
if it a file,
i.e. [url]http://www.mydomain.com/somefile.php[/url], I am running into problems with
this,
[url]http://www.mydomain.com/test[/url]

This is what I use for "redirection" now (btw, it is IIS (Win2k) and PHP
4.3.2)
The test.mydomain.com is setup as a host header under IIS

$redirect = getenv("HTTP_HOST");

if ($redirect=="test.mydomain.com"){
header("Location:http://www.mydomain.com/modules.php?name=test");
}

The above code works fine. Redirects no problem.

However, I am trying to get this to do the same thing:
[url]www.mydomain.com/test[/url] or [url]www.mydomain.com/test/[/url]
and both would take you here:
[url]http://www.mydomain.com/modules.php?name=test[/url]

I have tried every combination of the SERVER vars, but no luck.
I either generate a 404 or the test isn't part of the URL.

Any ideas ?