Fixed the bug that the sitemap could not be generated due to changing the database prefix during forum installation (that is, the data table prefix of the forum database is not pw_). Webmaster brothers who have changed the database prefix, please re-download the attachment of this post.
For a long time, the majority of webmasters have been working tirelessly to promote their websites, hoping that Google will include more of their website's content. However, due to various factors, the results have not been good, especially because they cannot write a sitemap that satisfies Google. . .
Many sitemap generators either charge a fee or have limits on the number of URLs they can generate, which is extremely disadvantageous for the majority of PHPwind webmasters.
The Google SiteMap generator has quite good results. During the use, I combined with Google’s official feedback and made some modifications based on the original work. I believe that the majority of webmasters will like it more. Let’s start with the optimized functions;
The first version: Generate a static page address with a fixed weight value (due to the fixed weight value, Google will officially issue a warning on the generated Sitemap. It is recommended that you do not use this version. It is for your reference and learning only)
Before optimization: Generate read.php?tid=* dynamic page address. After optimization: Generate read-htm-tid-*.html static page address to facilitate Google inclusion.
Second version: Generate static page address with random weight value (suitable for sites that have deployed static directories on the website)
Before optimization: Generate read.php?tid=* dynamic page address; all pages have the same weight, and Google officials will issue a warning on the generated sitemap;
After optimization: Generate read-htm-tid-*.html static page address, which is convenient for Google to include, and the weight of each page is randomly generated (the boundary value can be set in the background). Google official will not issue a warning for generating Sitemap.
The third version: Generate dynamic page addresses with random weight values (suitable for all sites, regardless of whether static directory deployment is performed).
Before optimization: All generated pages have the same weight, and Google officials will issue a warning on the generated sitemap;
After optimization: The weight of each page is randomly generated (the boundary value can be set in the background), and Google officials will not issue a warning for generating a Sitemap.
Installation and usage steps
1. Download the version you want in the attachment at the end of this post, unzip it to the current folder, and upload the ggsitemap folder to the hack directory in binary form;
2. Log in to the site backend and install the plug-in;
3. Click Plug-in Management, set relevant parameters and then you can use it.
PS: The copyright of this plug-in belongs to the original author and is for reference and learning purposes only. I do not assume any responsibility for any problems caused by using this plug-in!
Expand