Reputation: 178
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.
Upvotes: 5
Views: 3802
Reputation: 1103
Changing the document root in cPanel worked for me, so it might be worth a try.
Best of luck!
Upvotes: 2
Reputation: 11
In order to do this via the Bluehost interface, I followed these steps:
Upvotes: 0
Reputation: 2247
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
Upvotes: 6
Reputation: 178
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
Upvotes: 0