3 ms·
Does anyone have suggestions on what a proper robots.txt would be? How about: User-agent: * Allow: / Sitemap: https://example.com/sitemap.xml
by tiffanyh 2y ago
Does anyone have suggestions on what a proper robots.txt would be?
How about:
User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xml
- bragr 2y agoThat's a valid robots.txt, but "proper" is entirely dependent on what you want to achieve. If you aren't looking to treat different bots differently, and are looking allow all of your site to be indexed, then that is exactly what you want.
- deleted 2y ago[deleted]
- akira2501 2y agoThe recommendation is to use an empty "Disallow:" rule rather than a catch all "Allow:" rule. Otherwise that is the canonical minimal example.