This is an error from SEMrush. How do I fix this on a HubSpot site?
Hi @ekpierce,
I did a bit of research and found a similar case in our tickets, this was the solution:
In a robots.txt file, you should include a full path to your sitemap file (which is also located at the root level). To avoid getting an error for this line in your robots.txt file in SEMrush, please add this exact path to your robots.txt file (including the “Sitemap:”):
Sitemap: https://www.
YOUR_DOMAIN_HERE
.com/sitemap.xml
I hope this helps!
Cheers
Mia, Community Team
Thank you Mia! Just tried it and going to rerun the campaign. Will let you know if it worked!
Did you got this working?
Yes, this fixed it!
mine didn’t work. Should it be only: Sitemap: https://www.YOUR_DOMAIN_HERE.com/sitemap.xml and not include the allow or disallow