Web Hosting Talk







View Full Version : a question..


debris
03-15-2002, 09:46 PM
Sorry if this is in the wrong forum, but I was wondering if anyone here knew a method to direct visitors who click on a link such as this: http://mydomain.com/user to http://mydomain.com/~user? My current host only allows FTP users to have a /~user address, and I would prefer to get rid of the "~" somehow. I'd appreciate whatever help I can get. Thanks.

UnifiedCons
03-15-2002, 09:48 PM
Originally posted by debris
Sorry if this is in the wrong forum, but I was wondering if anyone here knew a method to direct visitors who click on a link such as this: http://mydomain.com/user to http://mydomain.com/~user? My current host only allows FTP users to have a /~user address, and I would prefer to get rid of the "~" somehow. I'd appreciate whatever help I can get. Thanks.

You have a tilde and you want to get ride of it (i.e., /user -> /~user) or do you not have a tilde and you want one (i.e., /~user->/user)?

Lats
03-15-2002, 09:57 PM
and I would prefer to get rid of the "~" somehow

Lats...

avara
03-15-2002, 09:59 PM
1. Create a new folder under mydomain.com called user
2. Put either a .htaccess file, or an index.html file which redirects to mydomain.com/~user

Hope this helps. :)

debris
03-16-2002, 05:01 AM
Thanks Avara. :) Yes, I've thought of the method you suggested, but was hoping for an easier solution. ;) Anyway, so if I were to make an index file /user/index.html that will redirect to /~user, what code should I use? I know of a few, but those would redirect only after the page loads on the browser. Can anyone give me one which will do the redirecting immediately when the link has been clicked?