Hello I have a RHEL5 server with a special hosting panel installed. Basically what the situation is I have some legacy usersites that have been migrated onto the server and need to use mod_rewrite to do some url changing.
what I want is
navigating to www.example.com/~billy redirects you to users.example.com/billy
I have a handfull of these users and is there some sort of universal way of making it so that the content after the tilde is matched to the redirect? for example
going to www.example.com/~billy goes to users.example.com/billy and then typing in www.example.com/~billy1 goes to users.example.com/billy1 accomplishing this with only a few lines of rules and conditions? I had this working once before but the server died and lost the .htaccess file.
The other fact is, www.example.com and users.example.com live in seperate root directories. Any help with this will be greatly appreciated.