How to configure the 301 redirect of the old link after website revision so that the position is not lost

📅 October 9, 2026 👁️ 22

How to configure the 301 redirect of old links after website revision so as not to lose ranking? The conclusion is that the ranking is not lost due to the revision, but mostly due to the incorrect configuration of the redirect. The 301 redirect passes two things - 'This address has moved permanently' and 'Please count the links and evaluations pointing to it to the new address.' As long as the old address does not point to the corresponding new address one-to-one, this level of transmission is broken. The approach is to follow four steps: first export the list of old addresses, then generate the redirect table according to the address rules of the new site, check the status code item by item on the day of going online, and finally resubmit the new address once.

What does the 301 redirect pass?

The semantics of permanent redirection is that the resource is no longer at the original address, and the new location is given by the position header in the response. After the browser receives it, it will directly request the new address, and the user will not see the intermediate process; after the search engine receives it, it will transfer the original cumulative external link relationship at the old address to the new address.

In contrast, there is a temporary redirect: it expresses 'temporarily change place', and the receiver will not solidify the address replacement relationship. The revision belongs to permanent change, and using the result of a temporary redirect is that the old address will remain in the index without being replaced for a long time, and two sets of addresses will coexist.

The four most common types of redirect errors

Error method Actual consequences The correct method
Redirect to the home page of the entire site All old address evaluations are aggregated to the homepage, and the rankings on inner pages are all reset to zero Old addresses point to corresponding new addresses, one-to-one at the page level
Only jump to category pages, not detail pages Long tail addresses with specific content are invalid Details, categories, and tags are archived separately
Use 302 or 307 to handle version changes Old and new addresses coexist for a long time, and indexes are not replaced Permanent changes use 301统一
Redirect chains exceed two levels Abandon tracking on the crawling side, which is equivalent to not jumping The old address directly points to the final address without any intermediate transfer

The fourth one is often undervalued. The chain A jumps B, B jumps C can be reached, but in fact, many only recognize the first jump, and each transfer increases a round trip. The jump table should directly write the final address.

The troubleshooting order on the day of the revision

Don't hurry to check the inclusion on the day of going online, check according to this order:

First, obtain a list of old site addresses, check the status code returned by the new address line by line, and confirm that it is 301 rather than 200 or 302. Second, check the old addresses with parameters such as pagination parameters, sorting parameters, and source statistics parameters to ensure that they will not generate an independent index each. Third, confirm that the standard address of the homepage and list page is still consistent after the revision. Fourth, check whether the site map of the new site has been completely replaced with new addresses, and do not leave old addresses in it.

Discuss the promotion after this round of inspection is done, otherwise the address sent will be redirected.

How to maintain the static rules and redirect table in the long run?

The static rules determine what address a piece of content is presented with externally. Redesign often changes the rules at the same time, such as changing the article from '?id=123' to 'by category, date, and identifier'. When the rules change, historical addresses all become old addresses.

There are two points to maintain. First, treat the redirect table as a configuration rather than a temporary script: when renaming columns or adjusting address rules, you need to add records to the table. Systems like AnQiCMS that have pseudo-static rules and 301 redirect management can place this mapping in the background maintenance, so changes take effect once, and there is no need to rewrite the rule file every time the version is updated. Second, the redirect table needs to be regularly consolidated; if it only increases and never decreases, the rules will become slower over time, and old addresses without external entries can be cleaned up.

One more push to be done after the redirect takes effect.

After the redirect table is running smoothly, push the new address link one by one, which is also known as active push. The purpose of this step is to shorten the waiting time for search engines to discover the new address, so that they can implement the matter of

At the same time, cancel the old site map submission records and replace them with new ones to avoid receiving two sets of lists at the same time. Short-term fluctuations in the index volume during the overhaul period are normal. Whether the handling is appropriate should be judged by whether the old address is gradually replaced, rather than by the total amount on a particular day.

Don't move the draft and content to be published together.

It is easy to casually move all the content to a new repository when updating. It is necessary to distinguish between visible and invisible content: entries in draft and pending publication status should not generate external addresses, nor should they be included in the jump table and site map. Documents that have been deleted and moved to the recycle bin are the same, and whether to jump back should be decided separately. Otherwise, the new site will go online with a batch of addresses that should not be discovered, and they will have to be handled one by one later.

Common questions

After the revision, why is the number of indexed links still decreasing? Redirects only guarantee the transmission of ratings, but do not guarantee the ranking remains unchanged. The ranking will also be affected by the completeness and loading performance of the new page content. First, confirm that the redirect ratio and status code are correct, and then check the page itself.

Must we use 301? Can we use 308 instead? Both indicate permanent migration, but the difference with 308 is that it does not allow the change of submission methods. 301 can be used for ordinary content pages, but for addresses involving form submission, 308 needs to be considered.

Should every old address with parameters be skipped? If the parameters do not change the content, they can be unifiedly redirected to the standard address; only when the parameters correspond to different contents should they be mapped separately.

How long after setting up the redirect table can the effect be seen? The recombination of external link relationships requires a crawling cycle, usually observed on a weekly basis, focusing on whether the old addresses are gradually dropping out of the index and whether the new addresses are rising to the top.

Related articles

Article status, recycling bin, and backup: the three places that are easy to neglect in the daily operation and maintenance of CMS

The three most easily overlooked aspects of daily CMS operation are the content status chain, time factor, and backup and restore. Formal documents, drafts, pending publication, and recycling station are four states, deleting formal documents only moves them to the recycling station and does not involve physical deletion; scheduled publication makes the online rhythm controllable; backup needs to include static files and verify whether they can be restored. This article provides the state transition sequence, backup strategy judgment, and the use boundary of full-site replacement.

2026-10-09

How to troubleshoot slow website inclusion: The configuration sequence of Sitemap generation and active push.

It takes time to determine whether it is due to the incomplete crawling chain or the content itself is not needed. The troubleshooting sequence is: use pseudo-static rules to converge each piece of content into an address form, confirm that the site map can automatically generate and cover new content, initiate link push after the page is indeed accessible, and finally review that robots do not block the key path. Reversing the order will make the proactive push ineffective, and this article provides the judgment criteria for each step and additional handling during the revision period.

2026-10-09

Security CMS MCP Function Details: Built-in 108 tools, allowing AI to directly help you manage your website

AnqiCMS built-in MCP Server, no plugin required to allow Claude, Cursor, and other AI clients to manage the website directly. This article details its working principle, 109 built-in tool categories, three-step configuration method, and typical use cases

2026-09-10

Installation of AnQi CMS - Troubleshooting common installation issues

Summarize common problems and solutions during the installation of Anqi CMS, covering typical scenarios such as port occupation, database connection failure, blank page, permission error, and missing dependencies, to help users quickly locate and solve problems.Question 1: Port occupied. Phenomenon: After starting AnQiCMS, the website cannot be accessed. Reason: The default port 8001 is occupied by another program.Troubleshooting method: # On Linux / MacOS: Check which process is occupying port 8001 lsof -i:8001 # Example output: # COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME #

2026-07-18

How to export fields and links when migrating content from WordPress to an independent CMS

When migrating away from WordPress, what is most likely to be lost is not the article content, but the field relationships and old addresses. The categories, tags, and custom fields brought in by the export file should be mapped to the new content model first, then determine the address rules and redirect table for the new site, and import them in batches and check each item. This article gives the five steps of migration, what to check at each step, and the three types of verification methods after the import is completed.

2026-10-09

Where does the difference lie between Baota panel deployment and Docker image deployment in website operation and maintenance?

The panel route gathers environment, certificate, database, and site management into one interface, configuration is changed through point selection, the advantages are quick to start and direct troubleshooting; the image route packages the running environment along with the application, and the machine is switched by restarting the container, the advantages are consistent environment and fast rollback. This article describes what they manage individually, three types of convenience, and selects according to three conditions, and gives four places to verify after deployment.

2026-10-09

Is the major PHP version website still in the security maintenance period, how to do the three-step self-check?

Confirm whether the PHP major version is still receiving security fixes, which is based on the two end dates in the official support table: the end of active support and the end of only security support. Self-check in three steps: check the actual running version, compare with the support table, and write the end dates into the maintenance record. Distribution data shows that a considerable proportion of sites are still running on the previous generation or even earlier major versions.

2026-10-09

The order of disposal after a website is injected with malicious code, whether to cut off the entry first or clean the files first.

The correct sequence after being hacked is to cut off the still effective entry first, then clean the files, then complete the entry vulnerability repair and review in the same round, and finally change the credentials. Simply cleaning the files without moving the entry will definitely recur: the number of files is hundreds or even thousands, and manual inspection and identification are not complete, and leaving an unrepaired entry means that the next round of writing is just a matter of time.

2026-10-09