📜 ⬆️ ⬇️

Sitemap MU plugin for WordPress MU

Faced with WordPress, MU decided to create a plugin that generates a map of user sites (each individual blog). The network already has how to remake the Google XML Sitemaps plugin under WordPress MU, but is based on files, let's say that hosting contains 1,000 or more blogs. It turns out a decent figure gigabytes :). I came up with a way out of this situation ...

The essence of my idea is that for each blog a separate page is created, into which the site map is generated. As it turned out, search engines are happy to take it and process it. Site maps are also added to robots.txt. Installation Copy the plugin in the folder mu-plugin. The Sitemap MU menu appears in the admin menu.

While the sitemap page is unchanged and remains www.domenblog.ru/?sitemap .

Version 0.0.1.
Create a sitemap for WordPress blogs MU.
Create a robots.txt.
')
You can see> here <.

Download here → Sitemap MU v.0.0.1

I will be glad to hear criticism, how to do better what? :)

Source: https://habr.com/ru/post/49959/


All Articles