Which step should be done first when moving historical content in the old site restructuring, bulk import or 301 redirect?
First, do the batch import, then perform a 301 redirect. The reason for the redirect is to transfer the traffic and weight of the old address to an existing new address: if the redirect is set up before the content is stable, users and search engines will be sent to pages that cannot be opened or are incomplete, which may damage the inclusion.The sequence of refactoring the old site should be to move the historical content into the new system as a whole, check and publish in batches, and then establish a one-time mapping from the old address to the new address once the new address is stable.AnQiCMS (AnQi Content Management System) supports batch import from ZIP compressed packages and Excel spreadsheets, and the imported documents can be initially saved as drafts,配合recycle bin to prevent accidental deletion, and finally, use 301 redirect management to redirect old links.
Why can't the order be reversed?
The redirect table is a 'promise': promising that there is an available page behind the old address. If the promise is issued too early, there will be problems - the new page is still being adjusted, the title and description have not been finalized, and the images are not complete. The user who comes in from the old link will see incomplete content; worse still, if the address rules are changed after the import, all the previous redirects will point to invalid locations and need to be remade. Conversely, if the import is completed first and then the redirect is done, the old site will still be providing normal services during this period, and there will be no downtime, with the minimum risk.
What do you need to prepare before batch importing, ZIP and Excel?
Cases suitable for different sources are different, you can refer to the table below:
| Import method | What is suitable to bear? | Prepare the key points | Common rework |
|---|---|---|---|
| ZIP compression package | Rich text historical articles with images and attachments | The corresponding relationship between image path and file name, the directory structure of the compressed package | Image references are misplaced, and a large number of missing images after import |
| Excel spreadsheet | Structured entries, information and product content with fields in order | The correspondence between column names and content model fields, unified date format | Categorization and tags written as text are treated as empty values |
It is recommended to keep the original address column of the old station at the preparation stage, which is the left half when creating the 301 redirect mapping table later, so you don't have to go back and catch it again.
Why do you need to draft first before publishing after importing?
Content imported in bulk should not be directly facing the public. The document status of AnQiCMS is divided into formal documents, drafts, pending publication, and recycling bin. Drafts are the most suitable position for batch verification: open columns in batches to check if the fields are complete, if the coding is normal, and if the pictures can be displayed. Confirm and publish batches to avoid exposing all problems online at once.During the verification period, if any errors are found, the delete operation is to move to the recycle bin instead of a physical deletion, which can be restored at any time, making it much safer than directly modifying the official release content online.The draft preview link with the preview parameter can also be sent to colleagues for confirmation, no need to publish first and then change.
How to build a 301 redirect mapping table?
The two columns of the mapping table are 'old address, new address'. The establishment order is to first export all the collected URLs from the old station, then compare them with the address list of the new system, and directly write in those that can be matched one by one; for the content that cannot be found, do not jump to the homepage hastily, but belong to the closest column page and record it separately as a pending list. For columns with significant structural changes, you can write the batch rules according to the directory prefix to reduce the amount of maintenance. After all the rules are configured, check some high-traffic old links in reverse, confirm that they fall to the new address and the status code is correct, and then notify the search engine to rescan according to the new site map and push.
What needs to be checked at the final stage
After the redirection takes effect, the old links will coexist temporarily in the form of 'old address redirection, new address inclusion'. At this time, three things need to be done: confirm that the new address has entered the site map and completed the push; observe whether the high-traffic old links still return redirection instead of directly 404; arrange to write the old links with missing content from the pending list. The old site program itself can be retained for a certain read-only period, waiting to confirm that there is no abnormal access before going offline, to avoid premature shutdown leading to the complete failure of some historical addresses.
Common questions
Can you set up redirection first, while the content is being supplemented gradually? Answer: It is not recommended. Redirecting to incomplete pages will damage user experience and indexing, and it is safer to set up everything at once after the address is stable.
What should you do if you can't find the old link corresponding to the new content? Answer: Redirect to the nearest column page and record a to-be-supplemented list, do not redirect to the homepage, as this will lose semantic relevance and is not convenient for follow-up review.
How do I deal with the situation where the fields do not match during the import process? Answer: First, correct the correspondence between the Excel column names and the content model, then re-import. Delete the imported error content to the recycle bin, and then restore or clean up from the recycle bin after checking for errors.
Do I need to download the old station images before batch importing? Answer: Yes. When using the ZIP method, the images must be packaged with the article, otherwise, after importing, a large number of image references will point to the old station address, and the cost of later supplementation will be higher.