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]"
You can create a folder user01 manually and then redirect from it to http://www.example.com/~webid_user01/. The same here.
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?
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