Skip to main content
Share Your Experience: Take the 2024 Developer Survey
26 votes

Are website subdomains that start with "www." and those which do not start with "www." one and the same thing?

They aren't necessarily the same, but the convention is to configure them to work that way. But it's just a convention, and there are sites where it does make a difference.
A. L. Flanagan's user avatar
19 votes
Accepted

Are website subdomains that start with "www." and those which do not start with "www." one and the same thing?

Subdomains named www (for World Wide Web) are not special compared to other subdomains. That is, there is no mechanical reason for a domain to be named www.example.com instead of hello.example.com. ...
Jasmijn's user avatar
  • 306
15 votes
Accepted

How can I use robots.txt to disallow subdomain only?

You can serve a different robots.txt file based on the subdomain through which the site has been accessed. One way of doing this on Apache is by internally rewriting the URL using mod_rewrite in ....
MrWhite's user avatar
  • 42.8k
9 votes

Are website subdomains that start with "www." and those which do not start with "www." one and the same thing?

This depends how it is set up in DNS. You will likely find that www is a CNAME (an alias) of the main domain - especially on a cpanel server. But this is only convention, it is a subdomain just like ...
Steve's user avatar
  • 8,503
8 votes

Are website subdomains that start with "www." and those which do not start with "www." one and the same thing?

To add to existing answers, a large (and recent) contributor to this confusion is Google Chrome's series of decisions to "simplify" the address bar, which results in hiding the www. prefix ...
ᴍᴇʜᴏᴠ's user avatar
5 votes

How can I use robots.txt to disallow subdomain only?

robots.txt works only if it is present in the root. You need to upload a separate robots.txt for each subdomain website, where it can be accessed from http://subdomain.example.com/robots.txt. Add ...
Sudip Chatterjee's user avatar
5 votes

Are website subdomains that start with "www." and those which do not start with "www." one and the same thing?

As others have said, it's conventional to make them equivalent, as a convenience to users. But for very popular web sites they're often not implemented the same way in DNS. Large sites generally use a ...
Barmar's user avatar
  • 151
4 votes

Google Search Console: Is it possible to exclude certain domains from domain property?

Unfortunately, no. That is not possible. I would very much like to provide a more detailed answer here, but it's really just that straight forward. We get 2 options: Why don't you just create an ...
Mike Ciffone's user avatar
  • 6,390
4 votes
Accepted

Should I use stacked subdomains (sub-subdomains, sub-sub-subdomains, …)?

UPDATED FOLLOWING CLARIFICATION I suspect that it is simply for user readability - a domain breadcrumb trail if you like. While I believe it is technically okay, I agree it is a very odd choice and ...
TBB's user avatar
  • 456
3 votes
Accepted

Split 3.5M pages under different subdomains. Good idea?

Google is indexing only a portion of your pages because your site doesn't have enough reputation. Splitting your reputation between three subdomains isn't going to help. You will still only be ...
Stephen Ostermiller's user avatar
3 votes

More than 100 of subdomains to be tracked in Analytics using Google Tag Manager

Regarding the Property and View limit (50 and 25, respectively), there's no way around that, really, so you'll probably have to break up the sub-d's across several properties. So with that in mind, ...
nyuen's user avatar
  • 2,533
2 votes
Accepted

Is it best for SEO to have one large domain vs multiple small

To begin: Okay. There are several things to consider here. Looking at things from Google's point of view, you can easily see why Google makes some of the decisions they make. I will cover just a bit ...
closetnoc's user avatar
  • 32.9k
2 votes

Is it best for SEO to have one large domain vs multiple small

If you create several websites with different root domains & if there are two pages linking to each other from two different domains, it means you have to build up reputation for those 2 domains. ...
Nicolas Guérinet's user avatar
2 votes

Split 3.5M pages under different subdomains. Good idea?

If the subdomains run all on the same server, then its bad speed-wise. I tried it myself and noticed higher TTFB values when I ran them under webpagetest.org Also, each new subdomain request is like ...
Mike -- No longer here's user avatar
2 votes
Accepted

How to distinguish different subdomains in Google Analytics with Wordpress multisite?

I will suggest creating a filter to one of your reporting or testing views following this procedure https://support.google.com/analytics/answer/1012243?hl=en This will record the full URL in your ...
Raul Reyes's user avatar
  • 2,476
2 votes

How to distinguish different subdomains in Google Analytics with Wordpress multisite?

The answer is actually quite simple: you can use the Hostname as a secondary dimension in your reports to separate between the main site and the subdomain. Alternatively, if you want a more permanent ...
Theo van der Zee's user avatar
2 votes

Joomla Website Creating Automatic Unwanted Subdomains

The issue that you are having is in relation to cPanel and your web host. Typically a default install of a cPanel hosting account will setup various services that can be accessed by your domain. Often ...
Simon Hayter's user avatar
2 votes

Rewrite wildcard subdomains in .htaccess to corresponding folders on the main domain while preserving the subdomain

I have Internal Server Error when I try to change the last line to RewriteRule (.*) /agents/%1/ [L] Because this will result in an internal rewrite loop. It looks like you also want to preserve the ...
MrWhite's user avatar
  • 42.8k
2 votes

Should I use stacked subdomains (sub-subdomains, sub-sub-subdomains, …)?

https://professor.department.faculty.university.tld format may be easier to maintain for your IT as against the method you expect. However the method you mentioned is the standard practice for the use ...
vikas pachisia's user avatar
2 votes
Accepted

Would 200 subdomains each with 500-1000 pages be too many?

In short, I would recommend going with subfolders, not subdomains. Most developers would probably agree that administering 200 subfolders is less work than 200 subdomains. Just thinking of the DNS (...
Maximillian Laumeister's user avatar
2 votes

Connect Google Analytics properly for a website that is accessible from 2 subdomains

i would place GTM on both subdomains, and use the same UA code if you want the data all in one place. For everything i've ever needed it to do, GA subdomain tracking works fine / natively / ...
Devin Schumacher's user avatar
2 votes

Are website subdomains that start with "www." and those which do not start with "www." one and the same thing?

Usually but not necessarily. The internet and the domain name system predate the web. It was the traditional practice to use a different subdomain for each service, this gave flexibility in hosting, ...
Peter Green's user avatar
1 vote

Is it better for speed and reliability to use one domain, or multiple (sub)domains?

From a speed point of view definitely 1 domain. This results in fewer DNS lookups and the ability to reuse connections which speed things up. Reliability is a complex issue. Its likely better solved ...
davidgo's user avatar
  • 7,959
1 vote

Remove All Subdomains From Google Search

Method one (SC) will probably block all your pages. Method two (.htaccess for subdomain) is fine. Give it some weeks. Additionally you could give all your subdomain-pages you want to keep out a <...
orx's user avatar
  • 422
1 vote
Accepted

Trying to add a mail server, mail.example.com redirects to different subdomain. How do I stop that?

Your gitlab VirtualHost is the first one. Under Apache, the first virtual host that you have configured is the catch-all. If nothing specific matches, Apache uses the first one. My guess is that ...
Stephen Ostermiller's user avatar
1 vote

Two subdomains set up on Godaddy: one works and the other says only "pageok", why?

Not a great solution, but I deleted the broken subdomain via the interface and waited for it to disappear (took about 20 minutes). I then added it again and waited (another 20 or so). After that it ...
THE JOATMON's user avatar
1 vote
Accepted

Will cross linking three subdomains to each other be good for SEO?

For SEO purposes, the fewer domains and subdomains you have, the better. Subdomains don't really help boost the main domain and if people link to the subdomains rather than the main domain, you're ...
WebElaine's user avatar
  • 1,920
1 vote

Robots.txt to disallow on multi level subdomains

While developing, each instance lives on client.dev.example.com Any "polite" bot will request the robots.txt file at http://client.dev.example.com/robots.txt. So this request must serve the necessary ...
MrWhite's user avatar
  • 42.8k
1 vote

Indexing different subdomains on a sitemap

The one unfortunate rule with sitemaps is that they are for one site only. In otherwords, you cannot reference more than one domain name. In your example, you are referring to example.com, fr.example....
closetnoc's user avatar
  • 32.9k

Only top scored, non community-wiki answers of a minimum length are eligible