How to login direct using "
webmail.domain.com" in to
Squirrelmail or
Horde of any account?
First you need to create a
subdomain that you want to redirect to your preferred Webmail client [
Squirrelmail /
Horde].
Following are the steps to create subdomain.
1. Login in to your
cPanel interface.
2. Select the Subdomain option, and create the subdomain. (For eg:
webmail.domain.com)
3. Once it has been created, go to the
File Manager option of the cPanel.
4. Change path to "
public_html" by selecting the folder image beside the text "public_html"
5. Now change the path to folder that was create by your
subdomain. (as per our example it would be the "
webmail" folder)
6. Once inside this directory [
webmail], you will see "
.htaccess" file, if it's not there then you need to create it manually.
* If it is not there then create new using below steps : (if it already exists proceed to step
10)
7. Create it [.htaccess] by selecting the "
Create New File" option.
8. A menu appears in the top right corner of the
File Manager interface. Choose "
Text Document" and name it "
.htaccess"
[without quotes
]
9. Now refresh File Manager and you will then see your new file [.htaccess] in the listing of that directory.
10. Click on the text title for the
.htaccess file on the left side of the screen and a menu appears in the top right of the screen.
11. Choose the "
Edit File" option, a new window opens.
12. Add the following lines:
If You Want To Redirect "webmail.domain.com" to the Squirrel Mail Client
Quote:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$
RewriteRule ^(.*)$ http://domain.com:2095/3rdparty/squirrelmail/index.php$1 [R=301,L]
|
If You Want To Redirect "webmail.domain.com"to the Horde Webmail Client
Quote:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$
RewriteRule ^(.*)$ http://domain.com:2095/horde/$1 [R=301,L]
|
NOTE: replace
"domain.com" above with your actual domain name.
Enjoy Direct Webmail Client Login.