LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: David Hill <david@djh.id.au>
  To  : Benjamin Close <cisbjc@cs.unisa.edu.au>
  Date: Mon, 1 Dec 2003 01:16:04 +0000

Re: Shifting User directories in apache

David Hill <david@djh.id.au> [2003-12-01 01:06 +0000]:
> Benjamin Close <cisbjc@cs.unisa.edu.au> [2003-11-28 04:46 +0000]:
> > I want the shown address in the address bar of a browser to show
> > http://doamin/people/user/ so I don't believe a rewrite will work. 
> 
> You should be able to use RewriteRule to do this.  Have another look at it,
> it's very useful.

Try something like this,

	RewriteEngine On
	RewriteRule ^/people/([^/]+)/(.*)$ /home/$1/public_html/$2

That seems to do the trick.

-- 
David Hill   <david@djh.id.au>
<http://www.djh.id.au/~david/>;      

-- 
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page