[Gllug] apache/php/htaccess type question

Daniel Andersson daniel at septum.org
Thu May 23 16:32:12 UTC 2002


you can do it with php (with register_globals = on)

<?
if ($HTTP_HOST == "my.subdomain.domain.com")
{
    header("Location: http://domain.com/my.subdomain/");
    exit;
}
?>

one possibility
but there must be a way with apache, one would think..

/ d

----- Original Message ----- 
From: "Vincent AE Scott" <gllug at codex.net>
To: <gllug at linux.co.uk>
Sent: Thursday, May 23, 2002 5:01 PM
Subject: [Gllug] apache/php/htaccess type question


> in a nutshell i want to be able to redirect a URL to a certain page.
> My provider has wildcard DNS records for my domain, so for example
> bobbins.codex.net and www.codex.net all point to the same document root
> in my homedir.  But i'd like to be able to 'point' [1] one of the names
> to another directory (off the main doc root).  i'm no expert in the arts
> of http, but i'm assuming this is possible without having to have
> changes made to the apache configs.
> 
> so, any idea how i can achieve this?  
> 
> -v
> 
> 
> [1] or whatever the correct terminology is
> 
> 
> -- 
> keys:  http://codex.net/pgp/gpg.asc http://codex.net/pgp/pgp.asc
> 
>  SENILE.COM found ... Out Of Memory ... 
> 
> 
> 
> -- 
> Gllug mailing list  -  Gllug at linux.co.uk
> http://list.ftech.net/mailman/listinfo/gllug
> 



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list