Is this possible?

I have say a domain called domain.com. Which translates to \www directory in my webspace.

domain.com ->www
\drupal
\subdomain1
\subdomain2

Now is it possible to setup the site such that www.domain.com points to \drupal instead of \(root)?

That way I can have a clean separation between my main domain and various subdomains.

thanks!

Comments

drupalzack’s picture

can I do domain forwarding?

www.domain.com ----forward to-------> subdomain1.domain.com?

Or will this cause some recursive horror/bad for SEO/not recommended?

Any inputs greatly appreciated! :)

gollyg’s picture

I dont know about the potential problems, but my host (bluehost.com) uses cpanel, which allows for domain redirects. You put in the domain and then the new path and the redirect takes effect. I thnk, but I am not sure, that as this is set up on the server as opposed to html response headers, that it is relatively transparent to the end user, and therefore will not effect any SEO etc. However, I actually have no idea about this ;). It hasnt caused any issues with my drupal site.

drupalzack’s picture

That works if you have multiple domains names but want to point to the same webspace account. In my case I have one domain name but want it pointed to a subdirectory or my webspace account instead of the root.

gollyg, did you have multiple domain names?

thanks

gollyg’s picture

I do have multiple domains, but have set one of the domains to point to a sub-folder on that domain. When someone goes to my address they are diverted to that subfolder. It is transparent to the extent that the user just ends up on that page without a browser redirect (I think), but the address bar of the browser reflects the subfolder.

I guess if you wanted it to be seamless in terms of the address bar you may have to mod your htaccess file, but that would, no doubt, confuse the drupal htaccess?

drupalzack’s picture

I guess if you wanted it to be seamless in terms of the address bar you may have to mod your htaccess file, but that would, no doubt, confuse the drupal htaccess?

That's exactly what I'm afraid of. Would drupal play nice with a modified .htaccess? Has anyone tried this?

Thanks gollyg for your prompt reply!