which is the correct way to develop a multiusers site in my hosting plan? I'd like to emulate mod_userdir urls results with "~", but i wouldn't like to use subdomains.
For example:
RewriteEngine on
RewriteBase /
RewriteRule ^~([^/]+)$ ~$1/ [R,L]
RewriteRule ^~([^/]+)/?(.*) users/$1/$2 [L]
username@hostname [~]# cd public_html
username@hostname [~/public_html]# ln -s ~/users ~/public_html/users
http://www.mysite.com/~username
Is this the correct way?If yes, i'd like to hide the path "users" from Apache listing directories. Infact if i go to http://www.mysite.com/~username/somedir/ and then i turn up directory level the url change to http://www.mysite.com/users/username/ .
There's some way to keep "~" in the url and hide "users" emulating mod_userdir ?
Thank you and excuse my bad english...