Subdomain is a domain which is a part of a larger domain. For example, 'sub.example.com' is subdomain of 'example.com' domain.
Questions tagged [subdomain]
806 questions
86
votes
8 answers
Should I include "www" in my website's URLs? What are the pros and cons?
What are the pros and cons of having http://www.example.com/ vs http://example.com/?
For example a problem I'm aware of is that if I use a domain without www I can't set a cookie for the current subdomain only (since there is no subdomain), and the…
Andreas Bonini
- 2,605
- 25
- 23
53
votes
4 answers
Are page ranks for subdomains independent?
If I have a domain name say stackexchange.com and I want to host 2 sites X and Y as subdomains of that site.
Will x.stackexchange.com help out y.stackexchange.com in page rank? Or will google treat them as 2 separate sites as far as page rank is…
Brian R. Bondy
- 1,076
- 9
- 12
42
votes
6 answers
Subdomain versus subdirectory
I recently moved from having a main site like www.example.com with a subdomain associated site yyy.example.com, to moving everything off the subdomain to a subdirectory like www.example.com/yyy/, with the same hierarchy underneath the subdirectory,…
delete
38
votes
4 answers
Do subdomains help/hurt SEO?
If I have example.com, and blog.example.com, do search engines see those as one site or two? Will using subdomains hurt SEO? I have some technical reasons why I can't use example.com/blog.
NotDan
- 543
- 1
- 4
- 7
33
votes
2 answers
Can I use different nameservers for different subdomains?
Suppose I have example.com and the nameserver I'm using is the one from the hosting server where I'm hosting the main site, say mainhosting.com.
Now suppose I add a new subdomain e.g. bla.example.com which I'm hosting somewhere else, say at…
RocketNuts
- 564
- 1
- 5
- 12
30
votes
5 answers
Why insert static files (CSS, images, JavaScript, ECC) in a subdomain?
Why so many big and little sites inserts static files (CSS, images, JavaScript, ECC) in a subdomain like media.example.com or s2.static.example.com?
What are the advantages? Why not just a directory like example.com/media/?
xRobot
- 401
- 4
- 4
28
votes
11 answers
SEO International Websites usage of sub domains and ccTLD domains
Is it better to have separate country specific domains (which costs more money) or sub domains which define the country, for better SEO?
e.g.
example.com
example.com.au
example.co.uk
vs
example.com
au.example.com
uk.example.com
Assumption: The…
Pure.Krome
- 565
- 7
- 12
21
votes
1 answer
CNAME: does a cname change the url that the browser displays?
I have a web site www.somewhere.com and I want the alias fr.somewhere.com.
I set up a CNAME record for www.somewhere.com alias fr.somewhere.com. When a user types in http://fr.somewhere.com in their browser, does the URL in the browser remain…
gangelo
- 335
- 1
- 2
- 5
20
votes
6 answers
Are website subdomains that start with "www." and those which do not start with "www." one and the same thing?
For a website, e.g. example.co.uk, when I write it in the URL bar of browser, it takes me to the URL https://example.co.uk.
When I enumerate the subdomains of the website, I get subdomains like www.example.co.uk, kneal.example.co.uk,…
Shy
- 325
- 2
- 5
19
votes
2 answers
Difference between CNAME and SUBDOMAIN
What is the difference between a CNAME and a Subdomain?
I understand that the a cname (the left side of a domain) can point to the domain, so you can two different urls point to the same address, ie.
ex1.mydomain.com - if setup as a CNAME can return…
password
- 293
- 1
- 2
- 4
16
votes
3 answers
How can I use robots.txt to disallow subdomain only?
My code base is shared between several environments (live, staging, dev) & sub-domains (staging.example, dev.example, etc.) and only two should be allowed to be crawled (ie. www.example and example). Normally I'd modify /robots.txt and add Disallow:…
alexus
- 312
- 1
- 2
- 9
16
votes
8 answers
Is it possible to find all subdomains for a certain domain?
a client of mine is currently hosting a web-project on one of his servers with some sub domains for previews, testing etc.
Those are really hard to guess sub domains like:
donottestme123789.example.com
preview_for_you15685485468.example.com
and…
Tim
14
votes
4 answers
Sitemaps - one per subdomain or one for the base domain?
I have more than 5 subdomains on a project, say developer, www, staff and some more, what is the best practice in creating sitemaps?
All subdomains that share a same sitemap at base domain (example.com/sitemap.xml) ? or different sitemaps for…
x0x
- 255
- 1
- 2
- 8
14
votes
2 answers
Why does my site only work with a www in the URL?
I'm a bit confused as the following points:
There is a simple text website, with no javascript, that works only with the prefix. http://www.mysite.corporation.com works but http//mysite.corporation.com will not work. What could be going on?
I run…
Mikhail
- 418
- 1
- 5
- 12
13
votes
1 answer
Is an externally-hosted subdomain a security risk?
A company I've been developing a web site for wants to keep their current domain, which is something like company.parentcompany.com. Because we wanted to use a different CMS, the parent company refused to support or even host it and asked us to pay…
Will
- 143
- 5