Skip to content

Robots.Txt

patrickdemooij9 edited this page Jan 16, 2022 · 1 revision

Installation

If you want to use Robots.Txt package for your Umbraco project then these are the steps to install the package:

  1. You first have to download the NuGet package to your project. You can use dotnet add package uSeoToolkit.Umbraco.RobotsTxt to download the NuGet package. Make sure to build your project after that!
  2. After that, you have to give your user group access to the uSeoToolkit section. This is where you can configure your RobotsTxt.

Getting Started

After the installation, you are able to visit /robots.txt on your root URL. If you have multiple domains like "test.com/nl" and "test.com/en", it'll only ever show the robots.txt on "test.com/robots.txt". This is where Google expects your robots.txt to be.

For editing the robots.txt, you can go to the uSeoToolkit section and click on the "Robots.Txt" node. This will load a textarea where you can add the content that you want for the robots.txt.

Clone this wiki locally