Skip to main content

Removing alias breaks the website

Comments

7 comments

  • 24x7server
    Hi, Are you adding the customer domain as subdomain?
    0
  • BluePlanet
    Thank you, it was added just an alias, not as subdomain. It was also not redirected anywhere. It was just an additional domain, where the website was available till it would go live. I solved with a redirection on the .htaccess file
    0
  • cPanelMichael
    Hello @BluePlanet, Does the website use an application such as WordPress? If so, browse to the administration area of the application installed on the website and ensure it's properly configured to reflect the correct domain name. To test if this is the culprit, upload a simple HTML file in the document root of the website and confirm if it loads. Thank you.
    0
  • BluePlanet
    Many thanks @cPanelMichael the website uses a proprietary code, developed in PHP. The entire CMS folder and its subfolder required to be redirect through .htaccess What I find interesting is that the situation occurs only when I remove the (non-redirected) alias. If I create a new cPanel account using the alias as domain and then replace it with the customer domain, when he is ready to go live, then everything is fine. Also, if I delete all the content of /public_html and upload the standard content again, it all works fine, even without any redirection on .htaccess
    0
  • cPanelMichael
    Hello @BluePlanet, Can you open a
    0
  • BluePlanet
    Absolutely @cPanelMichael glad to see this level of support and engagement! On the website where the issue occurred, we already fixed the situation, with an .htaccess redirect. Would you like me to build a dummy site, apply an alias and then remove it? So you can see from the console what errors are returned when the alias is removed. Please let me know, tnx.
    0
  • cPanelMichael
    Would you like me to build a dummy site, apply an alias and then remove it? So you can see from the console what errors are returned when the alias is removed. Please let me know, tnx.

    Hello @BluePlanet, Can you do this, and let us know the full step-by-step instructions you use to reproduce the issue? Thank you.
    0

Please sign in to leave a comment.