How to customize the URL alias of the document and ensure the uniqueness of the front-end link?

Calendar 👁️ 68

The custom URL alias of a document is an indispensable detail in website operation, it not only concerns the SEO performance of the website, but also directly affects user experience and brand image.In AnQiCMS, you have powerful flexibility to manage these aliases and ensure their uniqueness in front-end links.

Flexible definition, making the URL more meaningful

Imagine a disorganized URL made up of numbers and symbols, versus a clear, meaningful URL that directly reflects the content theme. Which is easier to remember and share?There is no doubt about the latter. AnQiCMS knows this and therefore provides a convenient URL alias customization feature.

When you create or edit articles, products, categories, tags, and even content models in the AnQiCMS backend, the system will provide you with a 'custom URL' or 'URL alias' field.This is the unique 'ID card' assigned to each content.

  • Custom URL for documents, categories, and tags:No matter if you are publishing a new article, creating a product category, or defining a keyword tag, the system will automatically generate a pinyin alias based on the title you enter.For example, if the title of your article is "AnQiCMS project advantages", the system may automatically generate "anqicms-xiangmu-youshi".Of course, you can completely modify it manually according to your own needs, such as shortening it to 'anqicms-advantages' that is more concise and SEO-friendly.This custom URL is usually composed of letters, numbers, and underscores, avoid special characters, and keep it concise and clear.

  • URL alias for content model:For the content model itself, such as the "Article" model or the "Product" model, you can also set a URL alias for it.This alias is usually the English name of the model, such as 'article' or 'product'.It is different from the custom URL of the document and category, because the URL alias of the content model will serve as the basic component of the URL structure for all content items under it.Once set, it will affect the front-end links of all contents under the model, so it is usually recommended to set a concise and universally applicable English word, and not to change it easily thereafter.

Ensure uniqueness: System intelligence and manual optimization

It is crucial to ensure the uniqueness of each URL alias. A website should not have two identical page links, as this not only confuses search engines, affecting crawling and ranking, but may also lead users to access incorrect pages.

AnQiCMS provides a solid guarantee in this aspect:

  • System automatic verification and correction:When you manually enter or the system automatically generates a URL alias and saves it, AnQiCMS will perform a site-wide uniqueness check.If the alias you enter already exists, the system will intelligently add a random number string to the alias you set automatically to ensure that the generated URL is unique.For example, if you enter "anqicms-advantages" but it already exists, the system may change it to "anqicms-advantages-12345".

  • Collaboration of static rules:These custom URL aliases will not directly become the complete link on the front end of your website.They need to be combined with the template you set in the "pseudo-static rules".In AnQiCMS' pseudo-static rules, you can flexibly combine{filename}(Custom URL for Document/Page/Tag),{catname}(Custom URL for categories),{module}(The URL alias of the content model) as well{id}variables to build the URL structure you want. For example, if your pseudo-static rule is set to/{module}/{filename}.htmlThen, an article belonging to the 'Article' model (aliasarticle), and the custom URL isanqicms-advantagesThe document, its final link may be/article/anqicms-advantages.html. The system automatically guarantees uniqueness, which is for these final links formed by the combination of pseudo-static rules and aliases.

  • The clever use of 301 redirects:Sometimes, even if the alias has been set and released, for reasons such as brand upgrade, content restructuring, or SEO strategy adjustment, you may need to modify the URL alias of a document again.At this time, you may worry that the original SEO weight will be lost, or that users will encounter a 404 error when accessing old links.The 301 redirect feature built into AnQiCMS is exactly for this purpose.When you change the URL alias, set up a 301 redirect in time to permanently point the old link to the new link, and you can seamlessly pass the original SEO weight to it, while ensuring that users can always access the correct page.This is a very friendly transition method that can effectively solve the negative impact brought by URL changes.

Operational suggestions to help you navigate effortlessly.

In practice, custom URL aliases and configuring pseudo-static rules complement each other.

  1. In content management, set a custom URL:

    • Go to the "Content Management" menu and select "Document Management", "Document Classification", or "Document Tag".
    • Find the "Custom URL" field when adding or editing content.
    • You can keep the system-generated pinyin alias, or manually input a concise, meaningful English word or phrase based on your SEO strategy and content relevance.Remember, to facilitate management and the aesthetics of the front-end link, try to ensure that its semantics are clear and avoid repetition with existing content.
  2. Configure the pseudo-static rule in the feature management:

    • Go to the "Feature Management" menu and select "Pseudo-Static Rule".
    • AnQiCMS provides various built-in rules for you to choose from, such as "number pattern", "model naming pattern", and so on.
    • If you have more personalized needs, you can choose "Custom Mode", based on the page type (document details, document list, single page, etc.), use{module}/{filename}/{catname}Combine variables to form the URL structure you want.

By making such detailed settings and management, every page of your website will have a clear, friendly, and unique URL, laying a solid foundation for your content marketing and SEO strategy.


Frequently Asked Questions (FAQ)

1. What practices should I follow when customizing URL aliases to optimize SEO?

When customizing URL aliases, we recommend that you prioritize the following points:

  • Include the core keyword:Ensure that the alias includes the most core keyword on the page, which helps search engines understand the page content.
  • Simple and clear:The shorter the URL, the better, avoid redundant words, so that users and search engines can quickly identify the content.
  • Use hyphens to separate:Words are connected with hyphens (-) instead of underscores (_), because search engines usually treat hyphens as word separators.
  • All lowercase letters:Use lowercase letters consistently to avoid potential duplicate page issues caused by case confusion.
  • Easy to understand and remember:Make the URL readable to facilitate users' memorization and sharing.

2. Will changing the URL alias of the document affect the SEO ranking of my website?

Changing the URL alias can indeed affect SEO rankings in the short term, as search engines need to rediscover and index the new links.However, the 301 redirect function provided by AnQiCMS can minimize this negative impact to the greatest extent possible.After changing the alias, you must set up a 301 permanent redirect from the old URL to the new URL in the background.This way, the search engine knows that the page has been permanently moved, will transfer the accumulated weight of the old links to the new links, and will automatically redirect users visiting the old links to the new page, avoiding 404 errors, thus maintaining your SEO performance and user experience.

**3

Related articles

How to extract and display the first image in the document content as a thumbnail?

In website operation, it is a key to enhance click-through rate and optimize user experience to equip each article or product with an attractive thumbnail.However, manually creating and uploading thumbnails for a large amount of content will undoubtedly take a lot of time and effort.Our company, AnQi CMS, is well-versed in this field and provides us with an intelligent and efficient thumbnail processing solution, making website content management easier. ### The Intelligent Thumbnail Mechanism of AnQi CMS The thumbnail processing mechanism of AnQi CMS is very user-friendly.

2025-11-08

How to optimize the display and lazy loading of images and videos in document content?

In today's content-driven internet environment, images and videos have become key elements in attracting users and enhancing page interaction.However, they are often the main culprits that lead to slow website loading and a decline in user experience.As users of AnQi CMS, we are fortunate to have a powerful and flexible system that not only efficiently manages content but also has many built-in features to help us cleverly optimize the display of images and videos, and realize smart lazy loading, so that the content can also 'fly' while ensuring visual effects.

2025-11-08

How to filter and display a specific content list based on the 'recommended properties' of the document?

How to effectively organize and display a large amount of content when operating a website is the key to improving user experience and content value.AnQiCMS provides a very practical feature, that is, to refine the management and filtering of content lists through 'recommended attributes'.This not only makes the website content more dynamic, but also helps visitors find the information they are interested in more quickly.### Understanding "Recommended Properties": A Tool for Content Organization In Anqi CMS, when we publish or edit documents, we will find an option called "Recommended Properties"

2025-11-08

How to display the title, category, time, and other core information on the AnQiCMS document detail page?

Manage website content in AnQiCMS, the document detail page is undoubtedly the core interface for users to obtain information.How to make this page both beautiful and informative is a concern for many website operators.Today, let's talk about how to elegantly display the title, category, publication time, and other key information on the document detail page of AnQiCMS.AnQiCMS uses a syntax similar to the Django template engine, which makes it very intuitive to call various data when customizing templates.

2025-11-08

How to display the Tag tags and associated documents on the AnQiCMS front-end page?

In AnQiCMS, effectively utilizing the tag feature is a key aspect for improving website content organization, optimizing user experience, and enhancing search engine visibility.Labels can not only help users quickly find the content they are interested in, but also provide website administrators with flexible content classification and association methods, breaking through the hierarchical restrictions of traditional classification.AnQiCMS' tag feature is powerful and flexible, allowing content creators to add descriptive keywords or phrases to articles and products.

2025-11-08

What is the difference between SEO title and document title? Where do they show up?

In website operation, we often encounter the concepts of content title and SEO title.Although they are all related to the 'title', there is a clear and important distinction between them in terms of actual application and display location.Understanding and effectively using these two things is the key to making website content both attractive to visitors and favored by search engines.

2025-11-08

How to configure and display custom Banner images and thumbnails for the AnQiCMS category page?

AnQiCMS (AnQiCMS) provides us with very flexible content management capabilities, one very practical feature is that it can configure and display custom Banner images and thumbnails for category pages.This not only makes our website look more professional and beautiful, but also effectively improves the user experience and the efficiency of content organization.Why does the category page need a custom Banner image and thumbnail?

2025-11-08

How does the inheritance mechanism of the category template affect the content display of the subcategory page?

The inheritance mechanism of AnQi CMS category templates: How to balance the consistency of page content and personalized displayAnQi CMS deeply understands this, and its inheritance mechanism of classification templates is specifically designed to help us cleverly solve this problem.

2025-11-08