Hongmu Notes
Home Practical Collection EmpireCMS 7.5 – Generate sitamap.xml mapping plugin
Practical Collection empire plugin

EmpireCMS 7.5 – Generate sitamap.xml mapping plugin

EmpireCMS 7.5 – Generate sitamap.xml mapping plugin

Here is a screenshot:

20251003193835557-image

 
20251003193735549-sitemap_w8WEJ.tar.gz
gz文件
5.7K

source

Found the code online and performed a simple optimization.

First, please complete and accurately enter the website address in the System Settings section.

thenconfig.phpThe URL in the document must also be entered correctly.

I like to...sitemap.xmlPlace it in the root directory for easier web crawling; therefore, the sitemap.xml file is located in the root directory.

Other XML files should be placed in their corresponding directories.

If your website handles a large amount of data, please use this plugin; if your data volume is small, you can use the code provided in this article!

Empire uses PHP to generate sitemap files

direction for use

  1. Edit configuration file

    • open  config.php Open the document and replace the URL within it with your own URL.
  2. Folder Copy

    • support  sitemap Copy folder to: /e/extend  In the Contents section.
  3. Backend Settings

    • Log in to the EmpireCMS backend and click on   in sequence; system -> Extended Menu -> Management Menu
    • In the Management Menu, add a category named "Sitemap Generation Plugin" with the type set to "Plugin Menu", then click "Add".
    • In the "Sitemap Generation Plugin" management menu, add a new menu item named "Sitemap Generation", and enter the link address:   你的域名/e/extend/sitemapSelect "Diamond Mode Link", then click "Add".
  4. accomplish

    • Once the settings are completed, you can use the plugin to generate a sitemap.

matters need attention

  • Please ensure that the plugin folder path is correct to prevent the plugin from failing to function properly due to path-related issues.
  • When modifying the configuration file, make sure the URL is entered correctly to avoid generating an incorrect sitemap file.

Compatible versions

  • EmpireCMS 7.5

autogeneration

If you wish to enable automatic updates, you can use the Baota Scheduled Tasks to schedule regular updates of the sitemap.xml file!

域名/e/extend/sitemap/list.php

20251003194949553-image

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Insert related articles in the middle of imperial cms articles (article page optimization, the effect is super good)

Insert related articles in the middle of imperial cms articles (article page optimization, the effect is super good) Practical Collection empire plugin

Those who understand will know – this feature allows you to aggregate related articles. By displaying these articles in the middle of the main content, it not only enhances the user experience but also achieves effective optimization. I've noticed that many high-authority websites are already using this feature, so I spent several hours researching it and wrote this tutorial! The benefit for website optimization is significant – I'm sure even seasoned SEO experts will agree! This feature was suggested to me by an experienced website optimization expert; I hope it will be helpful to all webmasters! Whether you run a content aggregation site or...
👁 474
EmpireCMS AutoTitlePic – Automatically generates title images

EmpireCMS AutoTitlePic – Automatically generates title images Practical Collection empire plugin

AutoTitlePic – a plugin that automatically generates article title images. When building a website, image copyright issues often arise; in such cases, having a plugin to generate thumbnails becomes extremely important! I have customized this plugin by adding a scheduled generation feature, allowing images to be automatically generated during periods of low site traffic – this can be seamlessly integrated with the scheduled tasks functionality in Baota. Key features: 1. Easy installation and simple to use; compatible with both existing and new websites. 2....
👁 419
Empire CMS 7.5 Baidu Active/Batch Push Plugin

Empire CMS 7.5 Baidu Active/Batch Push Plugin Practical Collection empire plugin

This plugin is compatible with EmpireCMS 7.5 and 7.2 (UTF-8 versions); its installation and uninstallation process is simple and straightforward. Many novice webmasters using EmpireCMS may often struggle with how to automatically push newly published articles to Baidu in real time. If website articles are not regularly submitted to Baidu, website indexing will be significantly delayed, which can negatively impact SEO performance. Especially for content aggregators, manually submitting articles would be a tedious and time-consuming task...
👁 341
After running the Empire CMS automatic installation script, the system will redirect you to the login page.

After running the Empire CMS automatic installation script, the system will redirect you to the login page. Practical Collection empire plugin

It's so annoying – every time I need to install the Empire CMS template, I have to manually delete the `install.lock` file and then proceed step by step! After completing each step, I still have to manually enter the database credentials and initial password! This is really frustrating! So, I wrote a PHP script with the following basic functionality: it eliminates the need to manually access the `/e/install` directory or delete the `lock` file; when the script is run, it automatically installs Empire CMS and then redirects the user to the Empire CMS homepage...
👁 230
Empire Toolbox V1.0

Empire Toolbox V1.0 Practical Collection empire plugin

As a webmaster who frequently uses Empire CMS, I often find certain operations to be particularly cumbersome! For example, I might want to change the Empire CMS database table prefix; or perhaps I want to batch modify the thumbnails for all articles collected from an external source; or if the images in the collected articles have become invalid, I might want to randomly replace them with new images; or I might want to batch delete other unnecessary tables from the Empire CMS database; or perhaps I've forgotten my Empire CMS admin panel password...
👁 442
EmpireCMS Batch Column Addition Plugin

EmpireCMS Batch Column Addition Plugin Practical Collection empire plugin

1. Powerful functionality: Automatically generates Pinyin-based table of contents; allows for quick, unified configuration of parent categories; supports recognition of custom parent categories. 2. User-friendly interface: Except for category names and table of contents settings, all other features follow the same configuration methods as those provided by the system itself, making it easy to get started. Custom category fields can also be configured in bulk. ******************** Installation Guide ********************
👁 332

Recommended reading

(Adaptive mobile version) Crusher Website Template – Crusher Equipment Website Source Code Download (1080p)

(Adaptive mobile version) Crusher Website Template – Crusher Equipment Website Source Code Download (1080p) Practical Collection pbootcms Template

A crusher and crushing equipment website template (PbootCMS), compatible with both PC and WAP devices. The professional industrial design is ideal for showcasing crushing machinery, mining equipment, and engineering case studies. It enables mining equipment manufacturers to showcase their products online and attract clients in the mining and construction sectors. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn (Related resources...)
👁 46
After remotely downloading PHP from Linux to Windows and decompressing the zip, the Chinese name appears garbled, for example: 铓gui庺奇敼曛ㄥ堠炂€---瀹炵椤

After remotely downloading PHP from Linux to Windows and decompressing the zip, the Chinese name appears garbled, for example: 铓gui庺奇敼曛ㄥ堠炂€---瀹炵椤 Summary of pitfalls

This problem may be caused by different filename encodings. In Linux, UTF-8 encoding is usually used, while in Windows, GBK or UTF-16 encoding is usually used. You can try the following to resolve this issue: Convert the encoding of the downloaded file in the PHP script to UTF-8 so that the Chinese file name will be displayed correctly after decompression on Windows...
👁 198
Responsive Foreign Trade Apparel and Accessories Corporate Website Template 1102

Responsive Foreign Trade Apparel and Accessories Corporate Website Template 1102 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for foreign trade apparel and accessories businesses. Its modern, international design style effectively showcases clothing products, brand identity, export advantages, and global market presence. It helps apparel brands enhance their brand image in the international market and secure overseas orders. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 39
(Adaptive Mobile Version) Responsive high-end home living space website template – PBootCMS; Download home renovation website source code – 0507

(Adaptive Mobile Version) Responsive high-end home living space website template – PBootCMS; Download home renovation website source code – 0507 Practical Collection pbootcms Template

A responsive, high-end home living space PbootCMS website template compatible with both PC and WAP devices. Its warm yet stylish design makes it ideal for home furnishing brands and lifestyle space design firms to showcase their products and case studies. This template helps home furnishing businesses attract quality-of-life consumers online. Template Preview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn – Related...
👁 54
Full-hydraulic dual-drive excavator and road roller website template – 0495

Full-hydraulic dual-drive excavator and road roller website template – 0495 Practical Collection Yiyou template

An eYouCMS website template designed for the full-hydraulic dual-drive excavator and road roller industry. Its professional yellow design style is ideal for showcasing excavator and road roller products, construction machinery equipment, technical specifications, and construction case studies. This template helps construction machinery enterprises showcase their products online and attract clients in the infrastructure and mining sectors. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: eYouCMS...
👁 44
(PC+WAP) Paint and Coatings Website Template – Home Improvement Website Source Code Download (1081)

(PC+WAP) Paint and Coatings Website Template – Home Improvement Website Source Code Download (1081) Practical Collection pbootcms Template

A paint and coating product page along with a PbootCMS website template compatible with both PC and WAP devices. Featuring a modern, practical design style, this template is ideal for showcasing paint and coating products, home decoration projects, and color schemes. It enables coating brands to showcase their products online and attract clients in the home decoration and construction industries. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn | Related Articles...
👁 38