Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable mail.domain with direct URL input

Discussion in 'Bind / DNS / Nameserver Issues' started by reexer, Mar 15, 2017.

  1. reexer

    reexer Registered

    Joined:
    Mar 15, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Malaysia
    cPanel Access Level:
    Root Administrator
    Hello team,

    May I know, when I directly input the link url http://mail.mydomain.com into browser suddenly it will shows the page of domain folder. (Index of/)

    How to block or disable this access to the public ? I am kindly new in VPN & WHM.
    Need your advice.


    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This behavior is by-design as of cPanel version 60:

    You could setup a Mod_Rewrite rule in the .htaccess file of the domain name's document root to redirect requests to the subdomain to another location. Here's a third-party URL where this is discussed:

    .htaccess rewrite subdomain to directory

    Thank you.
     
Loading...

Share This Page