# メインドメインとサブドメインの違い

**メインドメイン名**

第1レベルドメイン名とも呼ばれ、`「mysite.com」`のように1つのポイント(ドット)しか持ちません([co.jp](http://co.jp)、ne.jpなどの場合は2つ)。サブドメイン名はこのドメイン名の前にあります。

**サブドメイン名**

メインドメイン名の前にあるドメイン名で、ドメイン名には複数のポイントがあります。たとえば、`「domain.mysite.com」`は第2レベルのサブドメイン名です。

**第3レベルのサブドメイン名**

`“help.domain.mysite.com”`などの “ドメイン”の前に新しいコンテンツを追加するだけです。Nレベルのサブドメイン名はN-1サブドメイン名の前に追加します 。

**ディレクトリ**

コンピュータの場所を示すフォルダに似ており、パスの文字列です。

`“mysite.com”`は一般的にウェブサイトのルートディレクトリとみなされ、サブディレクトリはルートディレクトリの下にあり、リンクフォームは通常” `www.mysite.com/agent”`のようにドメイン名の最後に「/」が追加された形で指定されます。「/」はサブディレクトリです。

**Note：**\
Ptengineではメインドメイン名を追加するだけで、メインドメイン名の下にあるすべてのサブドメインとサブディレクトリを計測できます。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helps.ptengine.com/faq/tag-and-domain/domain-main-vs-sub.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
