Skip to main content

Subdomain redirecting to www

Comments

3 comments

  • cPanelLauren
    Hello @Liam McArthur The serveralias is intended to be present all domains created will automatically get a serveralias for the www. subdomain. This will not cause the redirection you're seeing.
    # To customize this VirtualHost use an include file at the following location # Include "/etc/apache2/conf.d/userdata/std/2_4/username/sub.domain.com/*.conf"

    This directory is only present if you've created it, if it's not present you've not added any includes for the VirtualHost. If you're seeing a redirect happen globally for all your domains you might want to check .htaccess files and /etc/apache2/conf.d/includes/ for redirects to www. Thanks!
    0
  • Liam McArthur
    I ended up removing the accounts completely, rebuilding Apache and manually adding the accounts/domains again. I believe a previously cancelled cPanel migration that crashed had caused some major problems throughout my installation but everything appears to be working perfectly again now.
    0
  • cPanelLauren
    Hi @Liam Venables I'm glad to hear you were able to solve the problem and that everything is functioning as expected now. Thank you for updating us as to how you resolved the issue. Thanks!
    0

Please sign in to leave a comment.