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!

Fix for Server URL 301 Redirecting to Error Page

Discussion in 'General Discussion' started by jwogrady, Jun 27, 2016.

  1. jwogrady

    jwogrady Member

    Jul 9, 2014
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    When I visit my WHM server, which is on lets say is, I am 301 redirected to an error page.

    What is the expected behavior?

    What I want to happen is for the server url to redirect port 80 folks to the secure WHM login screen like this.... ->

    More details on my scenario....

    - when I go directly to I am correctly redirected to the secured whm login screen. This is also true for

    - is the whm hostname, but does not have a hosting account on the WHM server.

    - I do have a valid wildcard ssl certificate for

    - My Tweaks "Always redirect to SSL" is marked yes, but that feature doesn't give me an option to specify a valid ssl destination. Why?

    - I ran scripts/rebuildhttpdconf and get "Missing owner for domain, force lookup to root".

    What I want...


    By default I want clients and admins visiting the server's domain on port 80 to get redirected to a secure WHM login screen....


    Since I have a wildcard ssl..... I would like an option to make my hosting customer's temp urls to be.....

    https://{cpaneluser} instead

    ... with proper http: redirect of course....

    For now, I would settle for understanding current best practice as they relate to the expected default behavior.

    I can't tell right now if things are working by design... or if I set something up wrong....
    #1 jwogrady, Jun 27, 2016
    Last edited by a moderator: Jun 28, 2016
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice