How to shorten the web site address?

Discussion in 'General' started by rosa hsiao, Dec 1, 2005.

  1. rosa hsiao

    rosa hsiao New Member

    Is there any way to shorten the web site address in the browser?


    1) visit user's web site by typing

    "http://www.example.com/user01/"
    instead of
    "http://www.example.com/~webid_user01/"

    2) login to user's webmail by typing

    "http://www.example.com/user01/webmail"
    instead of
    "http://www.example.com:81/webmail/index.php?lid=2&tid=0&f_user=&six=&[email protected]"
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You can create a folder user01 manually and then redirect from it to http://www.example.com/~webid_user01/.

    The same here.
     
  3. rosa hsiao

    rosa hsiao New Member

    Do you mean to create a folder user01 manually under /home/www/webid/user/ and copy all the web pages from /home/www/webid/user/webid_user01/web to /home/www/webid/user01/web or just create a symbolic link to it?


    I can write a php to redirect "http://www.example.com/~webid_user01/webmail"
    to
    "http://www.example.com:81/webmail/index.php?lid=2&tid=0&f_user=&six=&[email protected]".

    But I don't want the browser to see where the redirected web address is.
    How can I prevent the browser from seeing the whole redirected web string as http://www.example.com:81/webmail/index.php?lid=2&tid=0&f_user=&six=&[email protected]?


    Can you show me steps as how to achieve those goals without fail?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    No, you create the folder user01 manually under /home/www/webid/web (/home/www/webid/web/user01) and then create a redirect (e.g. with PHP) in that folder to /home/www/webid/user01/web.



    It might be possible to achieve it with Apache rewrite rules: http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
     
  5. rosa hsiao

    rosa hsiao New Member

    Thanks a lot. I will give it a try.
     
  6. rosa hsiao

    rosa hsiao New Member

    I did as you suggested and by using smbolic link,the alias problem was solved. Thanks!
     

Share This Page