Movatterモバイル変換


[0]ホーム

URL:


BloomreachBloomreach
Hippo CMS

Bloomreach Documentation version

Bloomreach.com

This article covers a Bloomreach Experience Manager version 13. There's anupdated version available that covers our most recent release.

Robots.txt Plugin Configuration

Installation

The Robots.txt plugin can be added to your project using the Essentials setup application.

Prerequisites:

Instructions:

  1. Using the Essentials setup application,add Robots.txt to your project.
  2. Rebuild and restart your project. On startup some additional steps to set up the plugin are performed by the setup application and it will indicate a second rebuild is required.
  3. Rebuild and restart your project one more time.
  4. Point your web browser tohttp://localhost:8080/site/robots.txt to see the robots.txt
See Plugin Installation for more information on the two required rebuilds.

Configuration

The robots.txt file is configured through a special document in the CMS.

  1. Select theContent Perspective.
  2. Browse to theadministration folder.
  3. Edit and publish therobots document.

MultipleSections are supported, each section representing aUser-agent: line followed by zero or moreDisallow: lines.

The shown configuration has the effect that for the User-agent calledGooglebot, all URLs under [your.site]/abc and [your.site]/def are disallowed. In addition, for all User-agents, all URLs under [your.site]/skip/this/url are disallowed.

On top of this, the robots.txt plugin automatically adds all faceted navigation URLs as disallowed. This behavior can only be overridden on the CMS Console, by adding the Boolean propertyrobotstxt:disallowfacnav with valuefalse to the Robots.txt configuration document.

Default Delivery Tier Configuration

The setup application adds all the required delivery tier configuration. This configuration will work for typical projects. If needed, theconfiguration can be adapted to the requirements of your project.

A component configuration and a Freemarker template are added to thehst:default configuration:

/hst:hst/hst:configurations/hst:default/hst:pages/robotstxt:  jcr:primaryType: hst:component  hst:componentclassname: org.onehippo.forge.robotstxt.components.RobotstxtComponent  hst:template: robotstxt.ftl
/hst:hst/hst:configurations/hst:default/hst:templates/robotstxt.ftl:  jcr:primaryType: hst:template  hst:script: (freemarker template source code)

A sitemap item (i.e. URL) is added to your project's configuration (e.g.myproject):

/hst:hst/hst:configurations/myproject/hst:sitemap/robots.txt:  jcr:primaryType: hst:sitemapitem  hst:componentconfigurationid: hst:pages/robotstxt  hst:relativecontentpath: ../administration/robots

Configure Robots.txt Per Mount

This feature is available since version 13.4.3.

It's possible to use a different robots.txt per mount by setting therobotstxt:path property to the path to the robots.txt document relative to the mount's content root. For example:

/hst:myproject/hst:hosts/staging/com/example/staging/hst:root:  jcr:primaryType: hst:mount  hst:homepage: root  hst:mountpoint: /hst:myproject/hst:sites/myproject  robotstxt:path: ../administration/robots-noindex

Example

The screen shot below shows sample output for the Hippo demo website, which has quite a few faceted navigation links. Note how they show up after the section-specific paths for all sections.

Did you find this page helpful?
How could this documentation serve you better?
Cheers!
On this page
    Did you find this page helpful?
    How could this documentation serve you better?
    Cheers!

    [8]ページ先頭

    ©2009-2025 Movatter.jp