richardk wrote:I've got a site at cooking.example.com, run by a CMS.
Is it a CMS that you installed (or could install at a different provider) or something custom to this hosting provider?
It's a CMS I installed: Drupal.
I use the multi-site feature of it. So Drupal is installed at
example.com. There I can create subfolders (like
cooking.example.com,
sports.example.com, ...) which are new sites which share the same code base. After creating a new sub-site folder, I have to create the appropriate subdomain at my hosters configuration backend. And I have to set the subdomain to point to the main folder, where Drupal is installed (
example.com),
Now, I could point the domain
cooking.tld to this Drupal installation folder and everything would be fine.
But my problem is: I
can't, because both domains (
example.com and
cooking.tld) need to be managed by the same hosting sub account, which is not the case.
Does you hosting provider control the cooking.tld domain? Did you register it with/through them?
I registered both domains at the same shared hosting provider. They are managed at the same registered account (same server, one payment for both, ...), but on different sub accounts (which I created; each sub account has own login/password, own statistics, own email, and so on)
You might need do have cooking.tld go to a server and then use mod_rewrite/mod_proxy proxy the request to the cooking.example.com server. Or you might need to find a different hosting provider.
Is mod_proxy needed? I found an htaccess code where "[P]" was used, but it did not work. Seems that my hoster does not allow this. Can I check it anyhow?
And if I transfer the domain to a domain provider, how would it be possible to do what I want? What would be needed?
Why do you want two addresses? Wouldn't redirecting to one address be better?
It would be okay for me to use only one address (
cooking.tld). But the problem is, that my CMS (Drupal) generates the URL of the
other domain. I can't change this (would have to import/re-install several big sites; and besides that, I don't want to change the domain for all sites).