Replace site-wide

📅 November 21, 2026 👁️ 0

Replace site-wide

Full-site replacement is used to batch replace the specified text in multiple types of data, supporting plain text and regular expressions.

Entry Path

Top menu →「Function」→「System Function」→「Full Site Replacement」。Actual address:/system/plugin/system/replacerequires administrative privileges(canAdmin)

Function description

The page can select the replacement location (backend settings, documents, categories, tags, anchor text, keywords, comments, image resources, navigation, friend links, jump links, regions, message boards, template files, etc.), whether to replace tag content, and whether to backup before replacing and add replacement rules.

Screenshot of the interface

Replace site-wide

Setting item description

Setting items function Value / Default How to select / Fill in suggestions Impact / Note
Replacement location Decide which data to scan 14 multiple choice items: Back-end settings, documents, categories, tags, anchor text, keywords, comments, image resources, navigation, friend links, jump links, regions, message boards, template files; mandatory [source code] Check as needed, the larger the range, the higher the risk Not selecting will result in an error 'Please select the replacement position'
Replace tag content Process tag data checkbox [source code] Turn on as needed —
Backup before replacement Automatically create a backup before execution checkbox [source code] Strongly recommended to check After checking, the full site backup containing the template will be executed first before replacing
Replace rule Original text and replacement text Custom from → to rule, from is required, to is optional [source code] Replace using plain text accurately first Error if no rule is filled in 'Please add a replacement rule'

Detailed explanation of configuration items

Built-in regular expression rules

Condition for occurrence: Available when filling in replacement rules [source code].

Regular expression syntax: by{Start,}End, as{[0-9]+}Match consecutive numbers [source code]. Built-in 7 items:{邮箱地址}/{日期}/{时间}/{电话号码}/{QQ号}/{微信号}/{网址}[Source code].

Common mistakesThe WeChat ID rule will affect the integrity of email addresses and URLs at the same time. Improper regular expression writing can cause extensive error replacement [source code+i18n].

Consequences of filling in incorrectlyFull-site replacement is irreversible. Incorrect rules can contaminate a large amount of data——make sure to backup and check the results before execution.

Operation steps

  1. Enter “Function → System Function → Full-site Replacement”.
  2. Select the positions to be replaced.
  3. Add replacement rules, confirm the original text and replacement text.
  4. Check “Backup before replacement”.
  5. Click “Submit” to execute, and then check the replacement results afterwards.

Operation steps

  1. Enter “Function → System Function → Full-site Replacement”.
  2. Select the positions to be replaced.
  3. Add replacement rules, confirm the original text and replacement text.
  4. Check “Backup before replacement”.
  5. Click “Submit” to execute, and then check the replacement results afterwards.

Applicable scenarios and suggestions

  • Use it when replacing brand names, domain names, and contact phone numbers in bulk.
  • First use exact text replacement, and use regular expressions when a pattern match is truly needed.

Points to note

  • Full site replacement is an advanced operation, incorrect rules can cause widespread incorrect replacements.
  • Regular expression rules may affect unrelated content, for example, WeChat ID rules can destroy the integrity of email addresses and URLs.
  • Always back up before execution, and check documents and template files after replacement.

Related documents

Related articles

301 Redirect Management

301 Redirect Management is used to configure redirection from old links to new links, often used to retain SEO weight after a revamp.

2026-11-21

Website security protection

Website security protection is achieved through frequency limits, IP whitelist and blacklist, UA checks, and memory threshold to intercept abnormal access.

2026-11-21

Prevent collection interference code

To prevent data collection interference, random content can be injected into the page or interactions can be disabled to increase the difficulty of data collection.

2026-11-21

Static page caching

Static page caching is used to cache the home page, list page, and detail page as static files, to accelerate access speed, and to support pushing to a static site server.

2026-11-21

Full-text Search

Full-text search is used to make the front-end search cover the document body, categories, and tags, not just the title. The page itself is a conditional联动 multiple configuration form, and after it is enabled, the engine needs to be selected and the index range needs to be configured.

2026-11-21

Resource Storage Configuration

Resource storage configuration is used to select the storage location for uploading images and files, supporting local storage and multiple cloud storage options.

2026-11-21

Translation configuration

Translation configuration is used to select the translation service interface used by the site.

2026-11-21

Add watermark to image

Add watermark to image is used to automatically overlay watermarks on uploaded images and supports batch watermarking for existing image libraries.

2026-11-21