-
Notifications
You must be signed in to change notification settings - Fork 34
Robots.Txt
patrickdemooij9 edited this page Jan 16, 2022
·
1 revision
If you want to use Robots.Txt package for your Umbraco project then these are the steps to install the package:
- You first have to download the NuGet package to your project. You can use
dotnet add package uSeoToolkit.Umbraco.RobotsTxtto download the NuGet package. Make sure to build your project after that! - After that, you have to give your user group access to the uSeoToolkit section. This is where you can configure your RobotsTxt.
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.