How to generate sitemap with react router

后端 未结 3 1745
南笙
南笙 2020-12-05 23:30

I\'m trying to figure out how to dynamically generate sitemap in reactJS server side (express) web app. I\'m using react router.

3条回答
  •  醉酒成梦
    2020-12-06 00:00

    You can generate the React Website sitemap in the following way.

    1.open your index.html file and add this script:

    
       
    

    2.open the following url: http://botmap.io/

    3.in that page type your website url: like http://www.google.io then click on Go button.

    4.It will crawl all of the anchor tags starting from the landing page and all of the inner pages in your reactjs web site.

    That's it, after that you can save it as XML format.

    It may be useful to others.

    Thank you.

提交回复
热议问题