22 votes

Cultiv DynamicRobots

The problem: You've made a multisite solution (either for multiple languages or just multiple sites in one Umbraco installation). You want to offer an XML sitemap per site, but your robots.txt can't display more than one URL for a sitemap.

The solution: DynamicRobots! This httpHandler will look for the string {HTTP_HOST} in your robots.txt file and replace it with the current site for you, so that spiders get a complete and valid URL for your sitemap.

Example: 
Sitemap: http://{HTTP_HOST}/sitemap

Note: if you are caching .txt files in IIS, then the hostname won't always change correctly, so make sure to disable caching for those files.

You can still edit your robots.txt file with the excellent robots.txt editor package by Lee Kelleher: http://our.umbraco.org/projects/developer-tools/robotstxt-editor

---

Also check out the Cultiv SearchEngineSitemap package, this package supports multisite solutions out of the box: http://our.umbraco.org/projects/website-utilities/cultiv-search-engine-sitemap

Screenshots

Package owner

Sebastiaan Janssen

Sebastiaan Janssen

Sebastiaan has 14169 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.1.x (untested)
8.0.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (100%)
7.2.x (untested)
7.1.x (untested)
7.0.x (100%)
6.1.x (100%)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Sebastiaan Janssen
  • Created: 20/07/2010
  • Current version 1.0.0
  • .net Version 4.5.2
  • License MIT
  • Downloads: 3414