skip to Main Content

Hope someone could help, am new to bluehost and had a shared hosting subscription. Now my issue is how to modify the subdomain document root.

example: from public_html/sub to public_html/sub/public

also when i created a subdomain it doesn’t even allow me to add "/" unlike in godaddy

thanks.

3

Answers


  1. Chosen as BEST ANSWER

    I found a solution so on the root folder add or edit if already existing .htaccess

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^sub.domain.com$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^www.sub.domain.com$
    RewriteCond %{REQUEST_URI} !sub/public/
    RewriteRule (.*) /sub/public/$1 [L]
    

    Done


  2. I had the same issue, some how I landed to this URL
    https://my.bluehost.com/cgi/dm/subdomain
    and it allowed to to add "/" with subdomain, hope it helps

    enter image description here

    Login or Signup to reply.
  3. In order to do this via the Bluehost interface, I followed these steps:

    1. Go to ‘My Domains’ under ‘Domains’ in the left-hand column
    2. Click the ‘Manage’ drop down and choose ‘Unassign’
    3. Click the green box that says ‘Unassign’
    4. Go to ‘Assign’ under ‘Domains’ in the left-hand column
    5. Go to ‘Subdomains’ under ‘Domains’ in the left-hand column (If you don’t click ‘Assign first, then clicking ‘Subdomains’ takes you to a different page…)
    6. Under the ‘Existing Subdomains’ header, find the subdomain with the Document Root you want to change and click the red trash can under ‘Actions’
    7. Now you can re-assign your domain as an addon or whatever and give it a new Document Root. (I should note, that none of these steps deleted my document root directory).
    8. Go to ‘Assign’ under ‘Domains’ in the left-hand column
    9. Follow the steps to assign an existing domain
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search