kowal.info

Robots

Composer kowal/module-robots · Version 1.0.11

Product page

Robots — kowal.co

Description

Sets robots meta directives for storefront URLs using path-matching rules.

For whom

For store administrators and SEO teams managing indexing directives for particular groups of pages.

Features

  • Separate NOINDEX and NOFOLLOW rule lists.
  • Prefix and wildcard path matching.
  • Matching against the public URL path even when Magento rewrites it internally.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-robots
bin/magento module:enable Kowal_Robots
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Enable the module under robots → settings in the intended scope.
  2. Enter one path per line without the domain. For example, customer/account/login/ matches a path prefix, while *archive.html matches a suffix.
  3. Enter a rule in both lists when both directives should apply. Save and refresh the page cache.

Requirements / notes

The package requires kowal/base. Matching is case-sensitive. The directive appears in the page HTML. The robots.txt file has separate configuration.

FAQ

Does an entry without a wildcard match just one URL?

It matches a path prefix, so it may also apply to longer paths beginning with the same characters.

Verify the installation

bin/magento module:status Kowal_Robots

On staging, configure NOINDEX for a chosen path. Compare the meta name="robots" element in the source of a matching page and a control page. Add the rule to NOFOLLOW and check for both values.