Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/robots.txt is missing #119

Open
2 tasks done
onnimonni opened this issue Oct 23, 2023 · 1 comment
Open
2 tasks done

/robots.txt is missing #119

onnimonni opened this issue Oct 23, 2023 · 1 comment

Comments

@onnimonni
Copy link
Contributor

Past Issues Searched

  • I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • This is a bug report and not a feature request, nor asking for support

Describe the bug

Currently when visiting https://lotusdocs.dev/robots.txt it returns 404 error page.

Expected behavior

In order to improve the SEO it would be helpful for the site to return /robots.txt with following content:

User-agent: *
Disallow:
Sitemap: https://lotusdocs.dev/sitemap.xml

This will allow crawling everything and point the crawlers to the sitemap.xml which is already available.

Source for sitemap not supporting relative urls: https://stackoverflow.com/a/14218476/1337062
Source for allowing everything: https://stackoverflow.com/a/44467157/1337062

Screenshots

No response

Environment

No response

@ManuelLevi
Copy link

If you add enableRobotsTXT=true to your hugo.toml, it should work.

You can also change the file by editing layouts/robots.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants