> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/optimizely/configured-commerce/optimizely-configured-commerce/marketing/work-with-urls.md).

# URLの操作

Optimizely Configured Commerce は、一連の規則を使用して Web サイトのページの URL を生成します。 これらのさまざまな規則と、各 URL の作成方法については、以下で説明します。

URL (Universal Resource Locator) は、ユーザーをインターネット コンテンツの特定の場所に誘導することを目的とした部分で構成された一意のアドレスです。 URL は次のようになります。

[www.example.com/catalog/category/potentialsubcategory/productname](http://www.example.com/catalog/category/potentialsubcategory/productname)

### 設定されたコマース URL 構造 <a href="#gjdgxs" id="gjdgxs"></a>

Configured Commerce は、URL を作成するための 2 つの一般的な戦略に従います。最初の戦略は、URL が特定の製品またはカテゴリに解決されることを意図している場合に採用されます。 URL は次のコンポーネントで構成されます。

[www.example.com/catalog/category/potentialsubcategory/productname](http://www.example.com/catalog/category/potentialsubcategory/productname)

* \*\*[www.\*\*-](http://www.**-) ホスト サーバーの特定のタイプを指定します。 これは、Webページがワールドワイドウェブサーバーであることを示しています。
* **domain**(例または Web サイト名など) - Web サイトの名前を指定します。 設定されたコマースでは、このドメインは、選択したウェブサイト&#x306E;**\[Details]**&#x30D5;ィンガータブ内の管理コンソールで設定されます。
* **.com** - 組織で使用されるトップレベルドメイン
* **/catalog/** - URLが製品またはカテゴリに解決されることを指定します
* **/category/** - アクセスされた親カテゴリ、または製品の親カテゴリを決定します。 **Catalog** > **Categories** > **Details** tab > **Name**フィールドに入力されたテキストがここに表示されます。
* **/potentialsubcategory/** - 親カテゴリに関連付けられている可能性のあるサブカテゴリに使用されます。 URL にはこれらのサブカテゴリのセクションが複数存在する場合があります。 各サブカテゴリは、サブカテゴリがなくなるまで文字列の末尾に追加され、左から右に揃えられます。 製品が最上位カテゴリにのみ存在する場合、このセクションは存在しません。 **Catalog** > **Categories** > **Details**タブ >**名前フィールド**に入力されたテキストがここに表示されます。
* **/productname** - 製品名を指定します。**Catalog** > **Categories** > **Details**タブ >**\[Name]**&#x30D5;ィールドに入力されたテキストがここに表示されます。
* 製品セグメント URL では、次の特殊文字を使用できます。
  * az
  * AZ
  * 0-9
  * \- \_ ( ) /
  * その他の文字は自動的にダッシュに変換されます

これらのコンポーネントを考慮すると、Configured Commerce では靴の URL は次のようになります。

[www.shoes.com/catalog/mens/leather/brownwingtip](http://www.shoes.com/catalog/mens/leather/brownwingtip)

一般カテゴリにユーザーを誘導する URL は、Configured Commerce では次のようになります。

[www.hardwarestore.com/gardening/shovels](http://www.hardwarestore.com/gardening/shovels)

Configured Commerce で URL が通常構築される 2 番目の方法は、はるかに基本的なもので、URL がコンテンツ管理ページ (AboutUs など) または定義済みコンテンツ ページに解決される場合に使用することを目的としています。 このような場合、ページ名は URL の末尾に追加され、次のコンポーネントで構成されます。

[www.example.com/pagename](http://www.example.com/pagename)

* \*\*[www.\*\*-](http://www.**-) ホスト サーバーの特定のタイプを指定します。 これは、Webページがワールドワイドウェブサーバーであることを示しています。
* **domain**(例または Web サイト名など) - Web サイトの名前を指定します。 Configured Commerce では、このドメインは、選択した Web サイト&#x306E;**\[Details]**&#x30D5;ィンガータブ内の管理コンソールで設定されます。
* **.com** - 組織で使用されるトップレベルドメイン
* **/pagename** - Configured Commerce で移動するページを指定します。 これは、定義済みのコンテンツ ページの名前、またはコンテンツ管理ページの作成時に指定された名前のいずれかです。

これらのコンポーネントを考慮すると、Configured Commerce での AboutUs ページの URL は次のようになります。

[www.bestcompanyever.com/aboutus](http://www.bestcompanyever.com/aboutus)

### その他のURLの考慮事項 <a href="#id-30j0zll" id="id-30j0zll"></a>

構成されたコマース Web サイトでサブドメインまたはマイクロサイト機能を使用している場合、URL にいくつかの違いがあることに気付くかもしれません。サブドメインを使用すると、サブドメインが URL の先頭に追加されます。

サブドメイン.example.com/catalog/category/product

Configured Commerce Web サイトでマイクロサイトを使用している場合は、URL 内の Web サイトのトップレベル ドメインの後にマイクロサイト識別子が追加されます。

[www.example.com/micrositeidentifier/catalog/category/product](http://www.example.com/micrositeidentifier/catalog/category/product)

### 有効なURL <a href="#id-1fob9te" id="id-1fob9te"></a>

場合によっては、機能が動作できるようにするために、ページ URL が機能によって追加および変更されることがあります。 たとえば、属性フィルターを使用してページをフィルターする場合、Configured Commerce は URL の末尾に情報を追加します。

[www.example.com/catalog/shoes/mens?categoryID=CategoryGUID\\\&Filters=FilterGUIDs\\\&sortby](http://www.example.com/catalog/shoes/mens?categoryID=CategoryGUID\\\&Filters=FilterGUIDs\\\&sortby)

ご覧のとおり、表示されているカテゴリと、ページ内のデータに現在使用されているフィルターに基づいて、さまざまなセクションが URL 文字列に追加されます。 これらの追加された部分は、解決されるアドレスの一部となることを意図したものではなく、データの変更を可能にするために使用されます。

CMS シェルを使用する場合、ページ URL も追加されます。

[www.example.com/ContentAdmin/Shell?frameURL=](http://www.example.com/ContentAdmin/Shell?frameURL=)

この例では、Configured Commerce が CMS エディターを使用する必要があることを認識するために、URL に /ContentAdmin/Shell?frameURL を追加します。 繰り返しますが、この URL は直接アクセスするために使用するものではありません。 これは、ユーザーが CMS シェルをアクティブに使用している特定の状況下でのみ追加されます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://manual.dxable.com/optimizely/configured-commerce/optimizely-configured-commerce/marketing/work-with-urls.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
