Skip to content

Where should I load a sitemap.xml and a robot.txt ... and can I view it? #37648

Answered by icyJoseph
Elindo586 asked this question in Help
Discussion options

You must be logged in to vote

Yes. They go under the public folder. https://nextjs.org/docs/basic-features/static-file-serving

You can view them at example.com/Sitemap.xml or example.com/robot.txt as you have them.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Kethangkath
Comment options

Answer selected by Elindo586
Comment options

You must be logged in to vote
2 replies
@icyJoseph
Comment options

@icyJoseph
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants