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

fix robots.txt so netlify deployment won't be indexed #288

Merged
merged 1 commit into from Apr 29, 2020
Merged

Conversation

Jolg42
Copy link
Member

@Jolg42 Jolg42 commented Apr 28, 2020

Current robots.txt

User-agent: *
Allow: /
Sitemap: https://www.prisma.io/sitemap.xml
Host: https://www.prisma.io

https://www.prisma.io/docs/robots.txt
https://prisma2.netlify.app/robots.txt

This will change it so https://prisma2.netlify.app won't appear in the search results anymore.

https://www.prisma.io/docs/ will still be indexed.

Related to prisma/prisma#1949

@Jolg42 Jolg42 requested a review from nilubava April 28, 2020 14:47
@Jolg42
Copy link
Member Author

Jolg42 commented Apr 28, 2020

Looks like it worked ;-)

https://deploy-preview-288--prisma2.netlify.app/robots.txt

@janpio
Copy link
Member

janpio commented Apr 28, 2020

Will this not publish the robots.txt as prisma.io/docs/robots.txt via the rewrite on the homepage-v8 repo?

Yep it will: https://www.prisma.io/docs/robots.txt
Although no bot will look at this, so it should be safe enough.

@Jolg42
Copy link
Member Author

Jolg42 commented Apr 28, 2020

@janpio yes but it's ok, the robots.txt is only read by engines if it's at the root level.

@janpio
Copy link
Member

janpio commented Apr 28, 2020

The robots.txt will actually not be in prisma.io/docs any more if this repo is repaired so that the docs content actually works on the preview URLs of Netlify etc.

@Jolg42
Copy link
Member Author

Jolg42 commented Apr 29, 2020

#288 (comment)
@janpio Not sure I understand 🤔 Also if this repo is repaired?

@Jolg42 Jolg42 merged commit 89639a2 into master Apr 29, 2020
@Jolg42 Jolg42 deleted the robots-txt branch April 29, 2020 15:35
@janpio
Copy link
Member

janpio commented Apr 30, 2020

https://deploy-preview-288--prisma2.netlify.app/ is currently fully broken, you can not follow any of the links.

To fix this, this repo will probably have to be changed to serve https://deploy-preview-288--prisma2.netlify.app/docs/understand-prisma/introduction instead of https://deploy-preview-288--prisma2.netlify.app/understand-prisma/introduction/ - which would put its robots.txt also in a spot where it can not be accessed via prisma.io

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

Successfully merging this pull request may close these issues.

None yet

3 participants