salvo72

file robots and sitemap wp6

by @salvo72 (114), 11 months ago

HI

I've been dealing with seo for many years but haven't had much experience with wp

I migrated a customer's site and now it's online

but I notice 2 things

1) there is no robots file on the root and as I see the wp core does not provide it, how can I create a valid robot file for wp with woocommerce?

2) when creating an xml sitemap, the various online tools are unable to access and return a system with only one line (the home)

the 2 things seem related... what blocks or what can block the boot of the engines ???

thanks for your support in advance

456 Views
0 Upvotes
2 Replies
2 Users
Sort replies:
binayjha
by @binayjha (4684), 11 months ago

Install All in SEO or Yoast plugin and configure it for your WordPress website. You will have the solution you are looking for.

matt_mirecki
by @matt_mirecki (130), 11 months ago

Yes, plugins like Yoast SEO, All in One SEO and Rank Math are great tools for that. Each one has options for both creating and accessing the robots.txt file and XML.

And the problem with accessing the XML sitemap may be because your robots.txt is disallowing it, so make sure you put this:

Sitemap: /example.com/sitemap.xml

in your robots.txt file to help crawlers access the xml sitemap

Join the forum to unlock true power of SEO community

You're welcome to become part of SEO Forum community. Register for free, learn and contribute.

Log In Sign up