Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Add missing user-agent in robots.txt

KrzysztofPajak6aaa24e25573
diff --git a/src/Business/Grand.Business.System/Services/Installation/InstallDataRobotsTxt.cs b/src/Business/Grand.Business.System/Services/Installation/InstallDataRobotsTxt.cs
index f7db8210f..e2db626b4 100644
--- a/src/Business/Grand.Business.System/Services/Installation/InstallDataRobotsTxt.cs
+++ b/src/Business/Grand.Business.System/Services/Installation/InstallDataRobotsTxt.cs
@@ -15,7 +15,8 @@ namespace Grand.Business.System.Services.Installation
var robotsTxt = new RobotsTxt() {
Name = "RobotsTXT",
StoreId = store.Id,
- Text = @$"Sitemap: {url}sitemap.xml
+ Text = @$"User-agent: *
+Sitemap: {url}sitemap.xml
Host: {url}
Disallow: /admin
Disallow: /bin/