views:

61

answers:

1

Should be easy for someone.

My files are in this directory: /user/home/peter/mygame/production/

I am required to access my site using: www.foo.com/peter (which brings me to /user/home/peter/)

How do I tell apache:

www.foo.com/peter reads from /user/home/peter/mygame/production/

Thanks.

+1  A: 
RewriteEngine On
RewriteBase /peter

# To avoid the infinite loop.
RewriteCond %{REQUEST_URI} !^/peter/mygame/production/
RewriteRule ^(.*)$ mygame/production/$1 [L]

(Assuming this is going into "/user/home/peter/.htaccess".)

Hao Lian