When using AnQiCMS for content creation and template development, we often encounter issues related to link handling, one common and critical question being:urlizeDoes the filter also force the addition of internal links when converting URLs in text to links?rel="nofollow"This is a detail that should not be overlooked for the website's SEO strategy.
According to the documentation of AnQiCMS,urlizeThe filter indeed converts URLs in text to clickable links while automatically addingrel="nofollow"Properties, this applies to both in-site and off-site links. This means that whether you are entering a link to an external website in the article content or a link to another page within your own website, as long as throughurlizeFilter processing, generated,<a>Tags will be added,rel="nofollow".
This design is not without reason. From the perspective of search engine optimization,rel="nofollow"The attribute tells search engine spiders not to follow this link and not to pass any 'link weight' (usually called 'PageRank' or 'link juice') to the target page.This is very useful when dealing with user-generated content (UGC), such as comment sections, message boards, or forum posts.It can effectively prevent spammy links and malicious SEO behavior, protecting the website's own link authority from being diluted and avoiding being incorrectly judged by search engines as participating in link farm and other illegal activities.
However,urlizeThe behavior may raise some concerns when acting on in-site links.In theory, internal links are an important part of the website structure, helping search engines understand the hierarchical relationships of the website, discover and crawl more pages, and pass the weight of internal pages.nofollowIt may affect the flow of weight on the page and the efficiency of search engine crawling to some extent, especially for websites that rely on internal link weight transfer for SEO layout.
Therefore, in practical applications, we need to choose whether to use it based on the nature of the link and the expected SEO effectsurlizeFilter. For those key in-site links (such as the main navigation menu, inter-article recommendations, and internal links on core product pages) that require careful management of SEO weight and aim to pass the value of internal links, **the practice is to avoid using**urlizeFilter. Instead, we should use other template tags provided by AnQiCMS, such asnavList(navigation list tags),archiveList(Document list tag) to dynamically generate these links, or manually write HTML in the template<a>These tags and manually created links will not be added by defaultrel="nofollow"Properties unless you explicitly specify them in the template.
urlizeThe filter is more suitable for handling links in non-core content areas, or URLs that may appear in large blocks of text. These URLs may not be needed or desired to pass weight, but are simply for the convenience of users to click and jump. It provides a convenient automated processing method, reducing the workload of manually adding links, while also defaulting to thenofollowAlso provided a layer of security.
It is worth mentioning that the AnQiCMS backend has an option 'Whether to automatically filter external links' under the 'Content Settings'. If this option is not checked (i.e., not to filter external links), the system will also automatically add external links retained in the content.rel="nofollow"Properties. This aligns withurlizethe behavior of filters, both reflecting that AnQiCMS tends to prioritize non-manually selected links in link management.nofollowThe cautious strategy for handling, to better control SEO risks.
In summary, AnQiCMS'surlizeThe filter is a convenient tool, especially suitable for quickly converting URLs in large blocks of text into clickable links.For important links that need to pass weight and optimize crawling within the website, it is recommended to use manual creation or utilize other template tags of AnQiCMS to achieve more refined SEO control.Understanding its working principle can help us use the various functions of AnQiCMS more wisely, achieving ** website operation effects.
Common Questions (FAQ)
Q:urlizeDoes the filter provide options to controlnofollowthe addition of properties?
Answer: According to the existing AnQiCMS document instructions,urlizeThe filter currently does not provide parameters to selectively enable or disablerel="nofollow"the attribute. It will default to adding this attribute to all recognized URLs, whether internal or external links.
What situations should I useurlizethe filter? And in which situations should I avoid using it?
Answer:urlizeThe filter is very suitable for handling user-generated content (such as comments, messages), or the URLs in the article body that you do not need to pass SEO weight. It can automatically convert URLs to links, and by default, it addsnofollowPrevent junk links effectively. However, for the core navigation menu of the website, related recommendations between articles, product lists, and other key in-site links that require passing internal weight and optimizing SEO, it is recommended to avoid using them.urlizeInstead of, it is achieved bynavList/archiveListusing specific template tags or manually writing HTML links to ensure the normal transmission of link weight.
Question: BesidesurlizeFilter, what other methods does AnQiCMS use to automatically handle links?nofollowproperties?
Answer: In addition tourlizeFilter, AnQiCMS has an option named 'Automatic External Link Filtering' in the 'Content Settings' section of the backend. If this option is not checked (i.e., not filtering external links and keeping the external links), the system will automatically add external links retained in the content.rel="nofollow"These two mechanisms both reflect AnQiCMS's cautious SEO control strategy towards non-manually selected links in link management.