MauroF Posted October 14, 2017 Posted October 14, 2017 I've got several addon and subdomains on my main site and their root folders are inside my public_html folder, a bit like this: public_html ├───subdomain1 │ └─── ├───subdomain 2 │ └─── ├───addon_domain1 │ └─── └─── I'd like to make things a bit more tidy and change the root of my main site to a folder inside public_html, so that every site has its own folder inside public_html, so that it would look like this: public_html ├───subdomain1 │ └─── ├───subdomain 2 │ └─── ├───addon_domain1 │ └─── └───www └─── Is that possible somehow? Quote
wolstech Posted October 14, 2017 Posted October 14, 2017 You can’t. The most you can do put an htaccess or script I n there to redirect the user or block access to the main domain. For instance, my main site is www.raxsoft.com/raxccm/ for this exact reason, and a script redirects users into the folder when they visit www.raxsoft.com. An account’s main domain always points to public_html. Quote
Krydos Posted October 14, 2017 Posted October 14, 2017 You could just have your main domain be more or less a throwaway for debugging and then use everything as addon domains. That's pretty much the reason my main domain has simply said "Blank." for the last 8 years: https://krydos.heliohost.org/ 1 Quote
MauroF Posted October 14, 2017 Author Posted October 14, 2017 You could just have your main domain be more or less a throwaway for debugging and then use everything as addon domains. That's pretty much the reason my main domain has simply said "Blank." for the last 8 years: https://krydos.heliohost.org/Yep, that works well, thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.