Subdomains and subdirectories

by @sam (114), 3 months ago

Has anyone had problems that result from creating subdomains with similarly structured subdirectories/subfolders? For example: and Will this cause issues with indexing or ranking?

2 Replies
2 Users
Sort replies:
by @ms (3182), 3 months ago

Should not be an issue at all if the content of those pages is different.

by @binayjha (2549), 3 months ago

Subdomains and domains are treated as two different properties by search engines. Both should have separate robots.txt files etc. As @ms mentioned, if the content on both type of pages you mentioned are different then things are fine. If not then Google has mentioned in documents,

> Provide one version of a URL to reach a document

To prevent users from linking to one version of a URL and others linking to a different version (this could split the reputation of that content between the URLs), focus on using and referring to one URL in the structure and internal linking of your pages. If you do find that people are accessing the same content through multiple URLs, setting up a 301 redirect from non-preferred URLs to the dominant URL is a good solution for this. If you cannot redirect, you may also use the rel="canonical" link element.


Having pages from subdomains and the root directory access the same content, for example, and

Join the forum to unlock true power of SEO community

You're welcome to become part of SEO Forum community. Register for free, learn and contribute.

Log In Sign up