Click to See Complete Forum and Search --> : Basic Domain Question
inusrat
03-08-2009, 10:39 PM
Hi,
Suppose I have a domain mydomain.com. I can hit my site by entering
mydomain.com
Then I have 2 subdomains
english.mydomain.com
french.mydomain.com
MY question is. I can also access my site by entering
www.mydomain.com
will
www.mydomain.com be also considered as subdomain of
mydomain.com
tracknut
03-08-2009, 10:47 PM
Normally "www" is aliased to your domain mydomain.com, but it could be a subdomain if you set it up that way. Basically the answer is that either one is possible.
Dave
inusrat
03-08-2009, 11:42 PM
thanks a lot
inusrat
03-09-2009, 08:38 AM
One quick question. I was told and also in the following article
http://content.websitegear.com/article/subdomain_tips.htm
that to make cookie work for subdomain you neeed to set cookie domain as .mysite.com
and then it will work for www.mysite.com or www.eng.mysite.com etc,
but if you put 'dot' in front it will not work for mysite.com (http://mysite.com)
document.cookie = cookieName+"="+escape(cookieValue)
+ ";expires="+expire.toGMTString() + ";path=/; DOMAIN=.mysite.com";
But that is not true. i tried that with dot and it works for both
www.mysite.com and mysite.com
Stettin
03-13-2009, 10:00 AM
I read somewhere that it is best to create a redirect for mydomain.com to go to www.mydomain.com via mod-rewrite apache config. I think this helps search engine rankings because sometimes you can get dinged for content on both.