How to configure the 301 redirect of the old link after website revision so that the position is not lost
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.