Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Mike Angove
August 26, 2006, 1:19 pm
rate this thread
I have recently accuried webspace and setup my domain to point to it. I
have also registered a couple of other domains and have them sharing this
space as subdomains (e.g. site A is in the webspace root, Site B domain is
directed to a subfolder, and site C domain has another subfolder).
I wish to direct my main domain, so that visitors to this address are
directed straight into a subfolder named main, as this is where i have
installed my CMS package. how do i go about doing this? i have tried to
setup redirects, but this seems to affect my other subdomains?
Hope someone can advise please.
<Remove the sausage to reply!!>
Re: Redirection question
If the other domains are separately registered, they're not "subdomains"
(at least, they're not subdomains of your first domain; technically
speaking, all domains are subdomains since they're subordinate to the
root). If you have the domain "example.net", then "foo.example.net" and
"bar.example.net" are subdomains of it, and "bar.foo.example.net" and
"baz.bar.foo.example.net" are subdomains of "foo.example.net" and
"bar.foo.example.net" respectively. However, "example.org" and
"foo.example" are separate domains that are not subdomains of any of the
However, the subdomain / separate domain status of the domains is
irrelevant to Web server configuration; whether they are related or
separate, they can be set up as separate virtual domains pointing at
entirely different resources on the server. If it is an Apache server,
and you have access to the configuration file for it, you can add
entries to the "Virtual host" section for each domain.
That's easy in most Web servers; simply set up a different document root
for each. You can then put separate .htaccess files in each document
root that cause such things as rewrite rules that act only on that
domain and not the others.
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info /
Dan's Web Tips: http://webtips.dan.info /
Dan's Domain Site: http://domains.dan.info /