As an experienced operator of AnQiCMS website, I know that every detail is crucial for the website's search engine performance and user experience.Especially the page URL structure and the personalized settings of TDK (Title, Description, Keywords), which are the key to attracting search engine crawling and meeting user needs of the website content.The 'Custom URL' feature provided by Anqi CMS is powerful, and with flexible TDK settings, it allows us to easily tailor exclusive optimization solutions for special pages.


Using AnQiCMS's 'Custom URL' feature to set personalized TDK links for special pages

In today's highly competitive content ecosystem, a website page's URL and TDK are not only information identifiers, but also important bases for search engines to understand page content and for users to decide whether to click.An SEO-optimized custom URL with clear semantics and relevant keywords, which can significantly improve the page's click-through rate and search ranking.AutoCMS knows this, so its "Custom URL" feature is designed to be both powerful and easy to use, allowing us to finely manage the SEO performance of each page.

Understanding the custom URL and its value in AnQiCMS

The 'Custom URL' feature of AnQi CMS allows us to摆脱the default, possibly mechanical URL structure of the system, and set personalized links for special content such as articles, products, categories, tags, and even single pages.This is usually used in conjunction with pseudo-static rules to convert dynamic parameterized URLs into more friendly, easier to understand and remember static URLs.

From an SEO perspective, the advantages of custom URLs are obvious.An URL that contains the core keywords of the page, which can clearly state the theme of the page to search engines and increase the weight of the keywords.At the same time, a simple and logical URL structure also enhances user experience, allowing users to get a general understanding of the page content before clicking, and reduces the bounce rate.Anqi CMS provides a custom URL setting entry in content types such as documents, categories, tags, and single pages, and it will automatically generate a pinyin alias of the content title by default. However, we can completely adjust it manually to achieve the optimization effect.It is particularly important to note that the custom URL must be unique throughout the entire site to avoid page duplication and indexing issues.

Plan and configure custom URL rewrite rules

Before setting a custom URL for a specific page, we first need to go to the "Feature Management" page in the Anqi CMS backend and select or configure a set of pseudo-static rules that support naming patterns.The rules of pseudo-static are the basis for the effectiveness of custom URLs, defining the overall structure of the website URL.

The auto CMS built-in multiple predefined rewrite rules, such as 'numeric mode', 'model naming mode', etc.For scenarios requiring high personalization, we should choose 'Custom Mode'.{id}/{filename}/{catname}/{module}variables to build URLs that comply with SEO**practices. For example, we can set the rule for the document detail page toarchive===/{module}/{filename}.htmlwhere,{filename}The variable is the custom URL alias that we will use during content editing.When the rule configuration is completed, all page URLs in the system will follow this newly defined structure. At this point, the custom URLs set for specific pages will be displayed normally on the front end.Ensure that thorough testing is conducted after saving the URL rewrite rules to ensure that all pages can be accessed normally, to avoid issues where pages cannot be opened.

Set personalized TDK link for special page

The configuration of the custom URL lays a foundation for further setting personalized TDK.In the AnQi CMS, documents (articles/products), categories, tags, and single pages all have independent TDK settings, allowing us to optimize the specific content of each page accurately.

1. Set TDK link for document (article/product):Whether it is publishing new articles or products, or editing existing content, we can find the corresponding TDK setting options in the editing interface.Within the "Other Parameters

  • SEO titleThis is the page:<title>Label content is crucial for search engine ranking. It should include core keywords, be attractive, and be within 60 characters.
  • Document keywords:Corresponds to<meta name="keywords">Tags, used to inform the search engine of the page keywords. Please use English commas between multiple keywords.,Separator, no need to pile up.
  • Document Summary:Corresponds to<meta name="description">Tags, are the summaries in the search engine results page. They should accurately summarize the page content, include keywords, and encourage users to click, keeping it within 150 characters.
  • Custom URLIn the 'Custom URL' field of the editing interface, we can set a concise, semantically meaningful English alias for the current document, for example, setting 'Security CMS Custom URL Function Introduction' asanqicms-custom-url-guideThis will constitute a part of the URL path for this page.
  • Standard Link (Canonical URL)If the page content exists with multiple URL access paths, or is highly similar to other page content, to avoid duplicate indexing by search engines, we can set a standard link pointing to the authoritative version of the content.
  • fixed_linkIn special cases, if you want the URL of a document not to change with the rewrite rule, you can set a fixed link with a relative path.

2. Classification page TDK link settings:In the "Document Classification" management page, when editing or adding a category, we can also find the TDK and custom URL settings options.

  • SEO titleEnglish: For the unique title of the category page, it usually includes the category name and core keywords.
  • KeywordsEnglish: For the keyword list of the category page.
  • Category IntroductionEnglish as category page description, for search engine summary.
  • Custom URLEnglish as a concise URL alias for category settings, for example, setting the "Business News" category ascompany-newsIf the pseudo-static rules contain{catname}as part of the URL path.

3. Set the TDK links of the tab page:In the "Document Tag" management page, when editing or adding tags, there are also independent TDK and custom URL settings.

  • SEO title: For the title of this tag page.
  • Tag keywords:For the keywords of this tab page.
  • Label Introduction:As the description of the tab page.
  • Custom URL:Set a concise URL alias for the tag, for example, setting the “SEO optimization” tag asseo-optimization.

4. Single-page TDK link settings:In the "Page Management

  • SEO title: Title of the single page.
  • Keywords: The keywords of the single page.
  • Single page introduction:Single-page description.
  • Custom URL:Set a simple URL alias for a single page, for example, set the “About Us” page toabout-us.

Call personalized TDK in the template

Set the custom URL and TDK information for the page, and then we need to ensure that the template can correctly call and display these values. Safe CMS provides a powerful "Universal TDK Tag" (tdk),it can intelligently capture the corresponding TDK information according to the type of the current page (document, category, tag, single page, etc.).

in the website template's<head>Region, we usually use it like thistdkTags:

<title>{% tdk with name="Title" siteName=true sep=" - " %}</title>
<meta name="keywords" content="{% tdk with name="Keywords" %}">
<meta name="description" content="{% tdk with name="Description" %}">
{%- tdk canonical with name="CanonicalUrl" %}
{%- if canonical %}
<link rel="canonical" href="{{canonical}}" />
{%- endif %}

The function of this code is:

  • <title>Label: Call the "SEO title
  • keywordsmeta tag: Calls the 'keywords' or 'document keywords' of the current page.
  • descriptionmeta tag: Calls the 'description' or 'document description' of the current page.
  • canonicalLinks: Check for a standard link, if it exists, add this link, which is helpful in resolving duplicate content issues.

Through this method, no matter which page the user visits, whether it is the article detail page, product detail page, category list page, tag list page, or a standalone single page, the template can automatically display the personalized TDK information we have carefully configured for it, ensuring that each page has excellent SEO performance.

**Practice and Operation Experience

As an operations manager, my experience tells me that optimizing custom URLs and TDK is a continuous process.Firstly, planning should be done before content is published, rather than making up for it afterwards.Next, the selection of keywords should conform to the user's search habits and avoid keyword stacking.The URL should be concise, clear, easy to remember, and share.Finally, use the traffic statistics and crawler monitoring function built into the Anqi CMS, regularly analyze the page visit data and search engine crawling situation, and continuously adjust and optimize the TDK strategy based on data feedback.

By finely utilizing the 'Custom URL' and TDK functions of the Anqi CMS, we can build websites that are extremely friendly to search engines and users, thereby standing out in the fierce online competition and achieving effective content dissemination and business growth.


Common Questions and Answers (FAQ)

Q1: I set a custom URL, but the link on the front page did not change, why is that?A1: If the custom URL does not work, it is usually because the rewrite rule is not configured correctly or not enabled. Please go to the "Function Management" -u003e "Rewrite Rule{filename}/{catname}or{module}The variable matches the page type you set with a custom URL.In addition, after saving the rules, please make sure that the Nginx or Apache server configuration of the website has also been correctly updated and reloaded to make the pseudo-static rules take effect.

Q2: Can the custom URL use Chinese? What if the custom URL I set is not unique?A2: To achieve the SEO effect and the universality of the URL, it is strongly recommended to use a combination of English letters, numbers, hyphens (-), or underscores (_) for custom URLs.Although Anqi CMS may automatically convert Chinese titles to pinyin as URL aliases in some cases, manually entering English, semantically meaningful URLs is more professional.If your custom URL is not unique throughout the site, the Anqi CMS system will automatically add random numbers or characters to the end to ensure uniqueness, which may make the URL look less aesthetically pleasing and semantic.Therefore, be sure to ensure that the custom URL you enter when setting it is unique.

Q3: What are the TDK tags used for?siteName=trueandsiteName=falseWhat is the difference?A3:siteName=trueThey are used for page titles (<title>标签)的一个参数,表示在显示页面的SEO标题时,会自动在标题的末尾添加网站的名称。For example, if the page title is “Product Details”, and the website name is “AnQi CMS”, then the final displayed title may be “Product Details - AnQi CMS”.siteName=falseThis indicates that the website name will not be added, and the page title will only display the 'SEO Title' you set during content editing, for example, only showing 'Product Details'. Usually, in order to enhance brand recognition and strengthen the association of search engines with brand words, we