ez |
|
---|---|
I am a noob with this subject... so here's my noobish question:
Situation: I have a subdomain: subdomain.Mydomain.com And I have registred an domain name lets say: domainname.com On My subdomain I install a cotonti ![]() And I let the domainname.com point to that subdomain.... (dns) Can I rewrite the subdomain.Mydomain.com to domainname.com So that it looks like you are on domainname.com (all the time) while in fact you are on a subdomain of another domain. I hope this is explained correctly... ![]() ==- I say: Keep it EZ -==
|
tensh |
|
---|---|
If you pointed your domain to that subdomain correctly, then no rewrite is needed.
Create a simple index.html and place it in the directory. Point your browser to domainname.com. If it opens index.html then it's properly configured. Just install Cotonti there and set base href to domainname.com. |
ez |
|
---|---|
Thnx tensh, i am going to try that first.
It was no good... ![]() When I goto domainname.com i get redirected to subdomain.Mydomain.com I do not want to see the url off that subdomain, I want to see domainname.com.. That is the whole point.... This i want to do with mod_rewrite if possible ... OR maybe there is another way ? ==- I say: Keep it EZ -==
|
|
Отредактировано: ez (19.03.2010 04:02, 15 лет назад) |
tensh |
|
---|---|
It depends on your provider.
In my case, I always must: 1. Write DNSes in my subdomain control panel to point to my host dns servers. 2. In my host control panel, point the domain to the folder somewhere in the root. 3. Write an email to my host provider to add my doman name to their dns records. Maybe you didn't do the third step? Adding domain should be widely described in your provider's help center. Write to them, tell your host name and that you pointed your domain name to their DNS and that you ask for adding your domain to their domain records. But if you have both a domain and a host at the same provider, you should be able to do it by yourself... but again, it depends on your provider and whether they added such a functionality. |
ez |
|
---|---|
I will ask my provider how this works.. thnx
==- I say: Keep it EZ -==
|
GHengeveld |
|
---|---|
You need to set a CNAME in your DNS records of domainname.com, like this:
* CNAME subdomain.mydomain.com Or, alternatively (will only work for domainname.com or www.domainname.com, not abc.domainname.com) - CNAME subdomain.mydomain.com (dash may also be set as empty) OR: www CNAME subdomain.mydomain.com (only redirect www.domainname.com) |