Redirect of All Public Domains not working

coolcom

Active Member
Mar 3, 2005
33
11
158
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?
 
Last edited:

coolcom

Active Member
Mar 3, 2005
33
11
158
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. :)
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
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!