SEO overview

Search engine optimization (SEO) is the practice of fine-tuning the content and presentation of a site to improve the way the pages are indexed by search engines. Commerce includes various features to support your ongoing SEO effort.

Meta data

Learn more about adding and enhancing keyword-rich meta data for your site and store.

Using a sitemap

A site map improves the way that your store is indexed by search engines, and is designed to find pages that might be overlooked by web crawlers. A site map can be configured to index all pages and images.

URL rewrites

The URL Rewrite tool lets you change any URL that is associated with a product, category, or CMS page.

Search engine robots

The Commerce configuration includes settings to generate and manage instructions for web crawlers and bots that index your site. If the request for robots.txt reaches Commerce (rather than a physical file), it is dynamically routed to the robots controller. The instructions are directives that are recognized and followed by most search engines.

By default, the robots.txt file that is generated by Commerce contains instructions for web crawler to avoid indexing certain parts of the site that contain files that are used internally by the system. You can use the default settings, or define your own custom instructions for all, or for specific search engines. There are many articles online that explore the subject in detail.

Custom instructions example

Allows Full Access

User-agent:*
Disallow:

Disallows Access to All Folders

User-agent:*
Disallow: /

Default Instructions

User-agent: *
Disallow: /index.php/
Disallow: /*?
Disallow: /checkout/
Disallow: /app/
Disallow: /lib/
Disallow: /*.php$
Disallow: /pkginfo/
Disallow: /report/
Disallow: /var/
Disallow: /catalog/
Disallow: /customer/
Disallow: /sendfriend/
Disallow: /review/
Disallow: /*SID=

Configure robots.txt

  1. On the Admin sidebar, go to Content > Design > Configuration.

  2. Find the Global configuration in the first row of the grid and click Edit.

    img-md
    w-700 modal-image
    Global design configuration
  3. Scroll down and expand Expansion selector the Search Engine Robots section and do the following:

    img-md
    w-600 modal-image
    Design configuration - search engine robots
    • Set Default Robots to one of the following:

      table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 layout-auto
      Option Description
      INDEX, FOLLOW Instructs web crawlers to index the site and to check back later for changes.
      NOINDEX, FOLLOW Instructs web crawlers to avoid indexing the site, but to check back later for changes.
      INDEX, NOFOLLOW Instructs web crawlers to index the site once, but to not check back later for changes.
      NOINDEX, NOFOLLOW Instructs web crawlers to avoid indexing the site, and to not check back later for changes.
    • If needed, enter custom instructions into the Edit Custom instruction of robots.txt file box. For example, while a site is in development, you might want to disallow access to all folders.

    • To restore the default instructions, click Reset to Default.

  4. When complete, click Save Configuration.

recommendation-more-help
d5ef48ad-708f-4ce5-a225-e7bb6053ded5