Skip to main content

mail.domain.com open main website

Comments

3 comments

  • rbairwell
    For some reason, cPanel thinks that mail.* is a domain alias for your main website: to be honest, I'm not sure how to fix this from within cPanel: but I know it could be fixed via root access via WHM/SSH: do you have access to either of those? In the interim, I would recommend putting in a .htaccess redirect file such as: RewriteEngine on RewriteCond "%{HTTP_HOST}" "!^www\.arabwindow\.net" [NC] RewriteCond "%{HTTP_HOST}" "!^$" RewriteRule "^/?(.*)" "https://www.arabwindow.net/$1" [L,R,NE]
    which will redirect any and all requests that hit your website which are NOT going to https:// www. arabwindow.net to that domain name. Hope it helps!
    0
  • fajryassin
    this solution solves my issue. But, If we can solve it from whm to all sites it is great thank you
    For some reason, cPanel thinks that mail.* is a domain alias for your main website: to be honest, I'm not sure how to fix this from within cPanel: but I know it could be fixed via root access via WHM/SSH: do you have access to either of those? In the interim, I would recommend putting in a .htaccess redirect file such as: RewriteEngine on RewriteCond "%{HTTP_HOST}" "!^www\.arabwindow\.net" [NC] RewriteCond "%{HTTP_HOST}" "!^$" RewriteRule "^/?(.*)" "https://www.arabwindow.net/$1" [L,R,NE]
    which will redirect any and all requests that hit your website which are NOT going to https:// www. arabwindow.net to that domain name. Hope it helps!

    0
  • cPanelWilliam
    Hello! [QUOTE]But, If we can solve it from whm to all sites it is great
    You could consider customizing the Apache template or adding a custom Apache include if you wanted to customize the behavior of all mail subdomains. Although I don't have any ready-made examples for this, I will include our documentation for these options below: How to use Apache includes to add configuration directives to all virtualhosts serverwide
    0

Please sign in to leave a comment.