301 redirect is an HTTP status code indicating that the web page content haspermanent
When do you need to set up a 301 redirect? Common scenarios include:
- URL structure optimizationWhen you decide to modify the URL naming rules of the website to make it more readable or more in line with SEO requirements.
- Page content migrationTransfer the content of a page from one URL to another, and the old page is no longer used.
- Domain name changeWhen your website switches from an old domain to a new domain, you need to redirect all traffic from the old domain to the new domain.
- Merge duplicate content:When multiple URLs point to the same or similar content on a website, you can choose one primary URL and redirect the other URLs to the primary URL to avoid search engine penalties.
- Remove old pageSome pages are no longer needed, but may still have external links pointing to them. These can be redirected to relevant new pages or the homepage using a 301 redirect.
幸运的是,安企CMS(AnQiCMS)作为一个功能全面的内容管理系统,已经内置了强大的301重定向管理功能,让您无需编写复杂的服务器配置代码,即可在后台轻松完成设置,有效避免因URL调整而可能带来的内容显示中断或流量损失。
Set the steps for 301 redirect in AnQi CMS.
The 301 redirect function of AnQi CMS is located in its 'Function Management' module and is easy to operate.
Log in to the Anqi CMS admin backendFirstly, log in to the management interface of Anqi CMS using your administrator account.
Enter the "Function Management" moduleIn the left navigation bar, find and click the "Function Management" menu item. This module collects many practical tools for website operation, such as pseudo-static rules, link promotion, etc.
Select "301 Redirect Management"In the sub-menu or page of "Function ManagementClick it to enter the redirection rule setting page.According to the update log, since version v2.1.1, the 301 redirect link support has been added to the Anqi CMS, ensuring that the version you are using includes this feature.
Add a new redirect rule:
- On the 301 Redirect Management page, you will see a "Add Redirect Rule" or similar button, click it.
- Enter “old address”: In the pop-up form, first you need to enter the “old address” you want to redirect to. This address can be a relative path (for example
/old-page.html) or a complete absolute path (such ashttp://www.yourdomain.com/old-page.html)。Suggest using relative paths when setting internal link redirection, and absolute paths when using cross-domain redirection. - Enter the "new address"Next, enter the 'new address' you want users to eventually access. This can be a relative path or an absolute path. Make sure the new address is valid and accessible.
- Save RulesAfter confirming that everything is correct, click the "Save" or "OK" button to submit your 301 redirect rules.
Test Redirect Effect
Practical Use of 301 Redirects
Just setting up 301 redirects is not enough, here are some suggestions to help you better utilize this feature and ensure the healthy development of your website:
- Plan ahead and conduct a comprehensive inspectionMake sure to have a detailed plan before making any URL structure adjustments.List all the old URLs that will be changed and the corresponding new URLs.Using the 'Full Site Content Replacement' function and other features of AnQi CMS can help you find and update related old links in your site content, reducing reliance on 301 redirects.
- Avoid redirect chainsAvoid redirecting a URL to another URL and then redirecting that URL to a third URL, forming a redirect chain.The long redirect chain can increase the page loading time and may cause problems when search engines pass on the weight.Directly redirecting the old address to the final destination is **the practice**.
- Regularly checkEven if redirection is set, it is recommended to check them periodically to ensure they are still valid.You can use Google Search Console or other SEO tools to monitor the 404 errors and redirect status of your website, and detect and fix potential problems in a timely manner.
- Update internal linksAfter setting up the 301 redirect, try to update all internal links pointing to the old URL to point directly to the new URL.Although 301 redirect can pass weight, accessing the new URL directly is more efficient and also有利于减少服务器负担.
- Distinguish between 301 and 302Remember, 301 is a 'permanent' redirect, used for long-term content migration.If your content is temporarily moved and will return to the old address in the future, you should use 302 redirect (temporarily moved).The 301 function provided by AnQi CMS is designed for permanent redirection, please choose to use it according to the actual situation.
Through these steps and **practice, you will be able to fully utilize the 301 redirect function of the Anqi CMS, ensuring that the website maintains a good user experience and search engine performance after content updates or structural adjustments.
Common Questions (FAQ)
Q1: I set up a 301 redirect, but when I visit the old address in the browser, it doesn't redirect. What's the problem?
A1: If you have set up 301 redirect in the AnQi CMS backend but it did not take effect, there may be several reasons.Please check that the 'old address' and 'new address' you entered are completely correct, including the case and slashes.The browser cache may cause the old page to continue to display, try clearing the browser cache or access in incognito mode.Finally, if your website is using a CDN (Content Delivery Network) or caching at the server level, you may need to clear these caches to see the latest redirect rules take effect.
Q2: What impact does a 301 redirect have on my website's SEO?
A2: The impact of 301 redirect on SEO is positive and crucial.It tells the search engine that the content of the old page has been permanently migrated to the new page, and most of the ranking weight and 'link assets' accumulated on the old page are passed on to the new page.This helps the new page inherit the search rankings of the old page, avoid traffic loss, and maintain a consistent user experience.If handled properly, a 301 redirect can minimize the SEO negative impact caused by URL changes.
Q3: Do I need to submit a new sitemap to Google Search Console or other webmaster tools after setting up 301 redirect?
A3: Yes, it is strongly recommended that you update and submit a new sitemap (Sitemap) to Google Search Console and other webmaster tools after setting up 301 redirects and testing for effectiveness.The site map will tell search engines which pages are on your website and their latest URLs.Although 301 redirect can guide search engines to discover new pages, submitting an updated sitemap can accelerate the crawling and indexing of new pages by search engines, fasterly reflect the update of website structure, and ensure the timely appearance of SEO effects.