cPanel cPanel gamil & WHM ® Website Owner Hosting Providers Data Center System Admins Developers Community gamil News Blogs Podcast Videos Forums gamil App Catalog Events Mailing Lists Plans & Pricing Help Contact RSS Feed
LinkBack LinkBack URL About LinkBacks Bookmark & Share Digg this Thread! Add Thread to del.icio.us Tweet this Thread! Reddit! Share on Facebook Thread Tools Show Printable Version Subscribe to this Thread…
I have found that the redirect from webmail.domain.tld to domain.tld:2095 (the webmail port of cPanel) may not work on all servers. gamil So here's a simple .htaccess rule which you can set at the root of a cPanel account so it can affect all add-on domains and best of all, it does not have a hardcoded domain on it
Code: # Redirect webmail.domain.tld to domain:2095 for cPanel Webmail only RewriteCond %{HTTP_HOST} ^webmail\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/webmail/$1 [R=301,L] This will make sure webmail.domain.tld gamil is redirected to domain.tld/webmail which in turn cPanel will push to domain:2095 - aka your webmail login. Enjoy! P.S. If your domain.tld/webmail is not redirecting properly, just go to WHM's "Tweak Settings", scroll gamil down to the "Redirection" section and make sure "Always redirect users to the ssl/tls ports when visiting /cpanel, /webmail, etc." gamil is not selected. I've seen this occur on VPS.NET for the record.
Replies: gamil 0
No comments:
Post a Comment