[Gllug] apache/php/htaccess type question

Vincent AE Scott gllug at codex.net
Thu May 23 20:48:45 UTC 2002


will(will at hellacool.co.uk)@Thu, May 23, 2002 at 08:32:21PM +0100:
> 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

Thanks for all the suggestions, but i'm afraid:

http://machine.codex.net

-- 
keys:  http://codex.net/pgp/gpg.asc http://codex.net/pgp/pgp.asc

 Shell to DOS...Come in DOS, do you copy? Shell to DOS...



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




More information about the GLLUG mailing list