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?
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.
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
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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now