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!

Redirect of All Public Domains not working

Discussion in 'Bind/DNS/Nameserver' started by coolcom, May 4, 2018.

  1. coolcom

    coolcom Member

    Joined:
    Mar 3, 2005
    Messages:
    21
    Likes Received:
    3
    Trophy Points:
    153
    Hello,

    I have a primary account with several add-on domains. I have set "Restrict document roots to public_html" to Off so that addon domains are not under the /public_html folder.

    I have set my Redirects to send **All Public Domains** to an outside URL.

    The redirect is working for the Primary domain in the /public_html folder... but not for any of the Addon domains.

    I can see that the .htaccess file for the Primary domain has been created... but the .htaccess file for the Adddon domains only reads:

    RewriteEngine on

    RewriteOptions inherit

    So my assumption is that the **All Public Domains** re-direct feature ONLY works if the tweak setting for "Restrict document roots to public_html" is set to ON and all addon domains are placed under the /public_html folder. Is that correct?
     
    #1 coolcom, May 4, 2018
    Last edited: May 4, 2018
  2. coolcom

    coolcom Member

    Joined:
    Mar 3, 2005
    Messages:
    21
    Likes Received:
    3
    Trophy Points:
    153
    Heh... OK... tested and verified. I guess that's what "Public Domains" means, eh? LOL

    All these years and I never understood that... I'm sitting here thinking "domains accessible by the public" sheesh. :)
     
  3. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @coolcom

    I actually think you were right initially, I do not believe that is how it should be working, according to our documentation here Redirects - Version 68 Documentation - cPanel Documentation

    I've opened an internal case so our developers can look into this CPANEL-20228 - I'll update you on the status of that here when I have more information. For now, it looks like you found a suitable workaround but let us know if you have any further issues.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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