Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st December 2005, 10:26
rosa hsiao rosa hsiao is offline
Member
 
Join Date: Oct 2005
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post
Default How to shorten the web site address?

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=&f_email=user01@ example.com"
Reply With Quote
Sponsored Links
  #2  
Old 1st December 2005, 10:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by rosa hsiao
1) visit user's web site by typing

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

Quote:
Originally Posted by rosa hsiao
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=&f_email=user01@ example.com"
The same here.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 1st December 2005, 11:45
rosa hsiao rosa hsiao is offline
Member
 
Join Date: Oct 2005
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
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=&f_email=user01@ example.com".

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/in...1@example.com?


Can you show me steps as how to achieve those goals without fail?
Reply With Quote
  #4  
Old 1st December 2005, 14:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by rosa hsiao
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?
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.



Quote:
Originally Posted by rosa hsiao
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/in...1@example.com?


Can you show me steps as how to achieve those goals without fail?
It might be possible to achieve it with Apache rewrite rules: http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 2nd December 2005, 02:51
rosa hsiao rosa hsiao is offline
Member
 
Join Date: Oct 2005
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
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.
Thanks a lot. I will give it a try.
Reply With Quote
  #6  
Old 5th December 2005, 14:29
rosa hsiao rosa hsiao is offline
Member
 
Join Date: Oct 2005
Posts: 93
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
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.
I did as you suggested and by using smbolic link,the alias problem was solved. Thanks!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IP address of the ISPConfig web dstme Installation/Configuration 2 15th August 2008 12:00
Duplicate virtual hosts bosei General 13 22nd December 2005 18:48
UebiMiau webmail adding @localhostname to email address except first address. Kamran Shah Installation/Configuration 5 11th October 2005 18:01
postfix config jmroth Installation/Configuration 6 18th September 2005 16:58
can't delete a site KenMcGinnis Installation/Configuration 2 14th August 2005 16:02


All times are GMT +2. The time now is 19:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.