LinuxSA Mailing list archives

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

Re: Shifting User directories in apache

David Hill wrote:

>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.
>
>  
>
Great, that worked perfectly.

Cheers,
    Benjamin

-- 
3D Research Associate / System Administrator     +61 8 8302 3669
School of Computer and Information Science       Room D1-07, ML Campus
University of South Australia                    Mawson Lakes Blvd.
Benjamin.Close@cs.unisa.edu.au                   South Australia, 5095
F00D C83D 5F7E 5561 DF91  B74D E602 CAA3 4842 B5B4


-- 
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