How to batch replace old links within the site after changing the domain name or column name, and what should be kept before the change

📅 October 12, 2026 👁️ 9

After changing the domain name or column name, the old links within the site should be processed in the order of 'first reserve, then replace, then redirect, and finally check': The first step is to make a data backup, leaving a copy of the entire content including static files to ensure that you can rollback in case of an error during replacement; the second step is to use a site-wide replacement tool to batch replace the old keywords or old links in the text; the third step is to configure 301 redirects for the old addresses, redirecting the existing references and favorites from outside the site to the new address; the fourth step is to manually check the navigation settings and single-page entry points to confirm that there are no references left outside the replacement scope.

Backup the day of the revision.

Replacement belongs to batch writing, one operation will change a large amount of text, and the cost of failure is not small. The significance of making a backup before modification is to compress the rollback time from

After making a backup, it is also necessary to confirm that the recovery path is available. Knowing where the backup is and how to restore it is more important than the backup itself; if the recovery process has not been verified on the day of the revision, it is as if there is no way out.

What is covered and not covered by the batch replacement

The site-wide replacement tool is responsible for batch replacing keywords or links, the object of which is the text in the content. The following table separates common locations according to whether they will be covered by the replacement tool, making it convenient to arrange item by item:

Position Can the replacement tool cover Solution
Inline text in the main text and in-site links Can Batch replacement from old string to new string
Images and attachment addresses in the main text According to the path writing First confirm the form of reference, then decide whether to replace the whole string
Column address in navigation settings Not possible Modify each item in the navigation settings one by one
Entry and title of the single page Not possible Check each single page one by one
Fixed address in the template Not possible Edit the AI visual template or manually modify the template
Site settings such as watermark, email reminders, etc. Not possible Belongs to another type of configuration, check item by item

The things that are easy to miss are on the right column. The navigation, single page, template, and site settings are not within the range of text replacement, and only one batch replacement will be run, and the footer address in the top menu of the page and the automatic email will still point to the old address.

How to补the redirect of the old address

The replacement of the main text solves how the station itself writes, but not how others enter. The old addresses that have been collected, shared, written into business cards and placed in materials outside the station need to be redirected to the new address through 301 redirect management. When configuring, write according to the corresponding relationship from the old path prefix to the new path. The overall renaming of the column can usually be covered by one prefix rule, and the alias of individual articles that have changed needs to be listed separately.

The static rules also need to be checked synchronously. After the column name is changed, if the old column name is still left in the path segment of the custom static URL, it will appear as a misalignment where the jump is possible but direct access results in a 404 error. On the day of the upgrade, a batch of real addresses were checked: old addresses, new addresses, column homepages, and article pages were tested one after another.

Several places need to be reviewed after the replacement

The review is done in four directions, much faster than reading the entire site:

  • Random sampling check: select several articles from the column with the largest amount of changes to confirm that the replacement did not change irrelevant text along with it;
  • Keyword and anchor text: The internal anchor text link depends on the keyword setting, and the anchor text pointed to by the column name after the renaming needs to be confirmed again;
  • Site map and push: After the address changes, regenerate the site map and do link push for the updated content to make search engines discover the new address as soon as possible;
  • Reminders settings: Mail reminders, watermarks, and other independent configurations need to be confirmed one by one, and we do not rely on the replacement tool to process it by the way.

Common questions

Can we skip the backup and directly run batch replacement?It is not recommended. Once batch replacement affects a large amount of text, it is faster and more reliable to recover from a backup than to manually correct it when there is a wrong replacement.

Can the old addresses in the navigation be replaced together?Cannot. The site-wide replacement is for keywords and link content, navigation settings, and single pages are part of the site configuration items, and need to be modified item by item at the corresponding position.

Should the old domain be retained for a period of time?Yes. At least retain the accessible entry of the old domain name within the effective period of the redirect, so that external references can naturally transition, and observe whether there are any concentrated access paths of the old path that have not been covered.

Will the inclusion be worse after changing the address?The key is whether the two things of redirection and site map are done enough: use 301 to redirect the old address to the corresponding new address, and send out the new full list through site map and link push, which can shorten the time to discover the new address.

What if I find that I made a mistake after replacing it?Restoring from the backup before the version update is the fastest way within the controllable range; if only a few entries are wrong, you can also correct them one by one in the background, and at the same time, add this round of new and old strings to the replacement record to avoid making the same mistake in the next round.

Related articles

Where should the sitemap be placed in the subdirectory or root directory, and what determines the range of covered addresses?

The range of addresses covered by the sitemap is determined by the directory ownership rules of the Sitemap protocol: a map can only contain addresses with the same prefix as the path. Placing it in a subdirectory cannot reach other directories. This article explains the ownership rules, the risk of missing pages when placing subdirectories, and the two methods of moving up to the root directory or splitting by directory and adding indexes. The address migration should be equipped with a 301 redirect.

2026-10-12

Should static files be taken along with the backup, and which items should be verified during the recovery exercise?

Backup suggestion: take static files along with the backup: AnQiCMS's backup and recovery supports the data range including static files, only exporting the database will leave the pictures on the detail page, generated pages, and upload directories empty after recovery. This article provides the method for judging the backup range, the five items list for recovery drill verification, as well as the differences in drills under container deployment and panel deployment, and the frequency recommendation for retention

2026-10-12

Which one to use for batch import: compressed package or table, and what scenarios are suitable for each source

Supports batch import of two sources: ZIP compressed packages and Excel tables: the compressed package includes the main text and resource files together, suitable for the entire site or column migration; the table is a structured field, suitable for building entries in bulk first and then filling in content item by item. This article provides the basis for selection, field mapping to prepare before import, and the categories, aliases, image placement, and push actions that must be checked after import.

2026-10-12

Should the site map list the translated pages and original pages together?

The translation page of a multilingual site is listed in the sitemap in three ways: only list the main language, list both languages, and list both languages separately by directory. The choice depends on whether the page really has independent content value, whether the translation is generated by the whole page or written manually. This article gives the method of judgment, the applicable scenarios of the three listing methods, common mistakes, and the respective duties of robots configuration and sitemap.

2026-10-12

Documents deleted can still be retrieved from the recycle bin, should you backup once before retrieving?

In AnQiCMS, deleting a formal document is not a physical deletion, the document will be moved to the recycle bin, and the content can still be restored; documents have four statuses: formal, draft, pending release, and recycle bin. The draft can be previewed with the preview parameter. It is recommended to make a complete data backup (including static files) before the recovery operation, to avoid the overlapping of recovered content with the existing version, and to check the consistency of the status and visibility on the front page after recovery.

2026-10-13

After the minor version upgrade, the old version of the table file format is no longer supported, where will the content import process of the site break in several cycles?

A minor upgrade to the data read and write component may directly remove support for the old table format, causing batch import to break at four points: template header, historical files, script connection, and batch tasks. Remedies are arranged in three paths: convert format, keep old files, and change to import interface; AnQiCMS provides a self-check list for ZIP and Excel batch import and import/archive interfaces.

2026-10-13

The upgrade announcement requires backup of files, databases, and custom templates. What is considered secure for each type of backup?

The PbootCMS V3.2.29 upgrade announcement lists 'backing up website files, database, and custom templates' as a prerequisite action, which is a typical requirement for the backup of the three-in-one set in peer CMS systems. This article discusses the verification points one by one: checking the completeness of the file package, ensuring the database can be restored with structure and data in a new instance, and checking whether the front-end style of the custom template returns to the pre-upgrade state; and combining with AnQiCMS's built-in capabilities such as backup data overlay, static file backup, and v3.6.5 template backup expansion to demonstrate the exercise steps.

2026-10-13

The operation list for the first day of a new site launch: where are the port monitoring, backup tasks, and logs configured in each step?

The new site went live on the first day and followed five steps in a fixed order: confirm service listening (AnQiCMS default port 8001), connect to reverse proxy and domain, establish a backup task with static files on the same day and practice a recovery, connect access and error logs, and finally run through the front-end and back-end feature points. There are slight differences in the deployment points of Baota panel one-click deployment and Docker image, which are marked separately in the list.

2026-10-13