View Full Version : Can I remove "~"? in RaQ3
Gary0704 01-05-2001, 05:19 AM Everytime I added a new user from my RaQ3 server, there is
a "~" in front of user name.
For example, when I added "abc" as a user of domain.com
it comes http://www.domain.com/~abc
Can I remove "~"?
Thanks for help
kunal 01-05-2001, 05:35 AM I dun think you can. I think "~" is like a standard for users which dun have domains or subdomains.
Chicken 01-05-2001, 01:09 PM Well, I'm guessing you know that you can use:
http://domain.com/users/USERNAME
-as well and don't like that. Through symbolic links you could do it I suppose, but it helps to seperate users from directories. Could be quite a mess if you mess around too much.
Félix C.Courtemanche 01-05-2001, 03:20 PM It is certainly feasible to remove the /~ or /users and replace it with anything else. However, that imply some manipulation of your httpd.conf file.
If you want to have nothing at all, it is also feasible, but will make any of your current domain.com/directory redirect to a 404 error, unless there is a username with the name of that directory.
Let me know if you want to know how to do it.
-Edward- 01-05-2001, 03:31 PM I'd like to know .. and can this be done on just certain domains?.
Chicken 01-05-2001, 04:08 PM It is just symbolic links but if I'm not mistaken, the RaQ likes to overwrite the httpd.conf so you can make all the changes you want and then once you do somethign with the CP, it is gone and you have to put it in again. Maybe I'm wrong, I'm sneaking in more computer time and have a lot going on today, heh.
Félix C.Courtemanche 01-05-2001, 10:31 PM I found a better solution than the one I had in mind ;)
in a .htaccess file in your /web directory, enter the following:
RewriteEngine on
RewriteCond /home/sites/www.domain.com/web/%{REQUEST_FILENAME} !-f
RewriteRule ^(.+) http://www.domain.com/~$1 [P]
Basically, this will try to redirect any 404 error to a user dir... if it does not exists, it shows a 404 error.
You can do variations on the theme by specifically writting down which dir should forward or not, etc.
Anyway :) Enjoy...
i still dont understand the post. i never get a ~ username when adding a user....
Félix C.Courtemanche 01-06-2001, 03:59 AM http://www.yourdomain.com/~username where username is whoever, will display it's home page.
This is a solution to see it in http://www.domain.com/username
Chicken 01-06-2001, 10:38 AM Originally posted by teck
i still dont understand the post. i never get a ~ username when adding a user....
Tech, when you add a user they get space they can access. Generally (what you probably know) you can access this space (anyone can access the space), at:
http://www.domain.com/users/USERNAME
-but it can also be accessed via:
http://www.domain.com/~USERNAME
-as well. And the '~' is what he wants to remove.
ahhh okay :) i was wondering why he wanted to remove it when i never got it. i was always happy to user domain/users/name. oh well.. but if you had a folder with the same username in the web directory, wouldnt that just defeat the purpose of removing it?
Chicken 01-06-2001, 12:02 PM Well the issue is linking that folder to the FTP USER account. You can set up a folder but giving access to it is another thing.
|