Creating an XML sitemap generator

2019-04-11 18:00发布

问题:

I want to create a XML sitemap generator. I have a script which creates a sitemap if placed in your directory with other files.

But I want to create a generator which will work with URL. Here what I actually want to create is, get a URL from user, track all web pages from given URL, put them in a XML sitemap format and give back the same XML file to user.

Please help me in this, I am doing this as project work. Following URLs work in same way:
http://www.xml-sitemaps.com/
http://www.web-site-map.com/

回答1:

Here on this link you have a list of Libraries and Tool's you can use to achieve that.

You can do it with PHP or you can install an Apache module which will generate sitemap for you .