Jump to content

Recommended Posts

Posted

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?

 

Posted

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.

Posted
  On 10/14/2017 at 2:04 PM, Krydos said:

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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...