Skip to main content

How to change / remove default website page error? Example: mail.domain.com

Comments

4 comments

  • cPanelPeter cPanel Staff
    Hello, What happens when you go to webmail.domain.com? That is in fact the correct location for webmail.
    0
  • cPanelMichael
    Hello :) You can modify the default website page via: "WHM Home " Account Functions " Web Template Editor" Thank you.
    0
  • MinaIsaac
    [quote="cPanelPeter, post: 1634362">Hello, What happens when you go to webmail.domain.com? That is in fact the correct location for webmail.
    [quote="cPanelMichael, post: 1634452">Hello :) You can modify the default website page via: "WHM Home " Account Functions " Web Template Editor" Thank you.
    Thank you for your replies, Actually, I don't want this to appear to normal users, not just modify it. It just looks wrong when a user visit mail.mydomain.com and get this default page show up. I tried to use the following code in the .htaccess in order to prevent mail.mydomain.com from loading but it didn't work. However, It worked for the other sub-domains on my website. RewriteEngine On RewriteCond %{HTTP_HOST} ^mail\.mydomain\.com$ [NC] RewriteRule ^.* - [F]
    Is there any other way to block/restrict the default website page from loading? http://mail.mydomain.com/cgi-sys/defaultwebpage.cgi Any answer appreciated! Thank you. Best regards.
    0
  • cPanelMichael
    You could setup an entry in the VirtualHost to redirect that subdomain to an alternate website or a 404 error page. Documentation on how to edit VirtualHosts is found here: Changes Contained Within a VirtualHost Directive Thank you.
    0

Please sign in to leave a comment.