[Gllug] apache/php/htaccess type question

will will at hellacool.co.uk
Thu May 23 19:32:21 UTC 2002


Vincent AE Scott wrote:
> 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?  

This should certainly be possible with .htaccess files.  Something like 
this:

RewriteEngine On
RewriteCond %{HTTP_HOST} machine.codex.net$
RewriteCond %{REQUEST_URI} !directory/
RewriteRule ^(.*)$ directory/$1

Will.



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




More information about the GLLUG mailing list