Created
November 18, 2020 12:32
-
-
Save halfbug/53135621f609e87d1be22598c80775a7 to your computer and use it in GitHub Desktop.
How to make Sitemap.xml public in React Js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Add sitemap.xml to public folder. | |
2. Import sitemap.xml in main app.js file ( you need to add it inside src folder too ) | |
3. Update Rewrites and redirects with xml | |
</^[^.]+$|\.(?!(css|json|gif|ico|jpg|js|png|xml|txt|svg|woff|ttf)$)([^.]+$)/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment