Because of the changes in base url in 4.7, I tried setting up a subdomain for a development site that would then be moved to the root of the domain.
I was able to create the subdomain alright, but I get a forbidden error when I access the sub-domain. My host (Site5) also reported the following:
The problem with your .htaccess file and please correct it.
[Sun Jun 18 20:33:12 2006] [error] [client IP address] Directory index forbidden by rule: /home/domain/public_html/test/
[Sun Jun 18 20:33:12 2006] [error] [client IP address] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
The way subdomains work on Site5 is that a separate directory is created under public_html for every sub-domain created. In this case, there is a live, 4.6.5 drupal site at the root of the domain (public_html) that obviously has a .htaccess file that seems to be somehow creating the problem. I am reasonably sure about this because on another site, I set up just a sub-domain and that works without any problem as there is no drupal site for that domain yet (so no .htaccess file).
Please note that I am not redirecting http://test.domain.com to www.domain.com/test but just looking to use test.domain.com itself.
I know the directory index forbidden error is just a setting to be changed in cpanel, but I have no idea how to get the subdomain working without breaking the current live site.