CNC stands for “human-readable URLs” or human-readable URLs. Setting up CNC in WordPress is done as soon as you create a blog, so that search engines do not have time to index the first texts of your texts on the web resource.
— URLs in this form are easy to remember.
As you can see, the advantages of finely tuned links on a website are undeniable, so let’s look at how to set them up.
1. We start setting up from the admin panel – Tinctures-Permanent links.
2. Mark the item Arbitrarily and insert the structure: /%category%/%postname%/.
Having completed the second stage, you will already see normal links. However, to fully complete the CNC settings, it is necessary to convert them into translit. Plugins will help us with this, namely Cyr-To-Lat.
1. Opens Plugins-Add new.
2. In the search field, enter the name of our plugin and Enter.
3. Choose Cyr-To-Lat and click Install.
Installation completed. We have successfully set up CNC (permanent links) on the website.
Now the address of your website pages will look like:
Important! Perhaps, while visiting other sites, you have come across page URLs with .html at the end:
This type of address lets us know that the programming language html. If you wish, you can do the same. To do this, at the stage of selecting the item Arbitrarily and when entering the design: /%category%/%postname%/, at the end we add .html.
As a result, instead of http://website.com/fotos, we will get http://website.com/fotos.html.
As a summary behavior, we would like to note that the plugin Cyr-To-Lat after complete installation and activation, it will automatically transfer all the links you previously created into transliteration. So you don't have to do anything manually.
Agree, it’s nice to install plugins that do all the work for you, making the appearance and navigation of the site more convenient and understandable for users.
Hello, friends! Today you will learn something very important from an SEO point of view - what is CNC. And since you and I are learning how to make blogs, we will study this term through practice - we will set up a WordPress CNC. Attention, friends! It is important to do this before publishing the first materials on the blog, otherwise you will have to mess with the 301 redirect, and there is nothing pleasant about that.
CNC is an abbreviation that stands for human-readable url. The name says it all - these are meaningful URLs that the average person can read. What are their advantages of CNC:
Such addresses can be generated automatically; you only need to configure them once. Go to the “Options” tab - “Permanent links”.
The general settings provide templates for generating blog page URLs. All of the proposed options are not very successful, so we select the “Custom” option and enter the following line:
/%category%/%postname%. html |
Now the blog post URLs will look like this: http://blog_name/category_name/article_name.html.
Since the titles of the articles are in Russian, the addresses of the blog pages will contain Russian words. This is very bad. Search engines do not understand the Russian language (even Yandex does not understand the native language of its creators), they convert Russian words into a set of unreadable characters. To verify this, just paste the URL into the search form on Yandex or Google. Websites with domain.рф are no exception!
You can fix this using a simple RusToLat plugin. It converts Russian letters into Latin ones, which are perfectly understood by search engines.
The plugin itself consists of just one file and is installed as standard. There is no need to configure it - it starts working immediately.
If for some reason RusToLat doesn't work, try the alternative plugin Cyr-To-Lat. It is also easy to install and is ready to use immediately after activation.
Plugin.html on RAGES
You may have noticed that the human-readable URL template we installed contains the ending .html. It is intended to show search engines that the page is static. Whether to add this ending or use the standard template /%category%/%postname%/ is largely a matter of taste. Unfortunately, the .html ending is only added to posts, not pages. You can fix this using a simple plugin.html on RAGES. It is installed as simply as RusToLat. The plugin has no settings and starts working immediately after activation.
If you've been using it for how long standard template permalinks, and then decide to use CNC in WordPress, then the addresses of previously published articles will change, and their old URLs will display a 404 error (page not found). To solve this problem, you need to set up a 301 redirect - redirecting all visitors from old pages to new ones. Many plugins have been created to implement it, but most of them do not work. I found only one working option - the Redirection plugin. Unfortunately, you will have to create each 301 redirect manually.
Hello, dear readers of the blog site!
In this post we will talk about what CNC is and what basic settings need to be made after CMS installations WordPress.
If you turned off local server Denwer, then run it. There should be shortcuts on your desktop that will help you do this, look for start denwer, click a couple of times and the virtual server will start.
Then, in the address bar of your favorite browser, type the address: localhost/global/wp-admin.
Global is the name of my folder where the blog is located; yours may have a different name.
When you first log in, you may need to enter the username and password you created.
You will be transferred to home page administrative panel, here on the right top corner you need to find the inscription “screen settings”. A window with settings will appear, remove the checkboxes next to the items that you DO NOT need.
I always leave only " Current state blog" and "Latest comments", I also select 1 column. You will not have item 3 “Related Post” at the initial stage.
To remove this settings window, click “Screen settings” again. We've sorted out the appearance a little, now let's configure it appearance links.
CNC are human-readable URLs. Many newcomers do not customize the appearance of links, and for a long time they hang out in the back positions in search engines.
To make it clearer to you, let me give examples:
1) URLs – which are displayed by default, without settings, look like this: site/?p=233 .
Search engines do not like such links, so in this case it is more difficult to promote a blog.
2) Now pay attention to the correct CNC settings: website/chto-takoe-chpu.html.
This type of URL contains the keyword - chto-takoe-chpu, which in turn increases the relevance of the document this request, and brings one step closer to the TOP search results. TOP – the first ten in search results.
Let's proceed directly to the CNC setup itself. In the admin panel, go to the “Settings” - “CNC Permanent Links” section.
We are redirected to the settings page, here we need to configure the type of link for WordPress according to a custom structure, indicate your type of page URL, see the screenshot.
Place a circle next to “Custom” and indicate any option you like.
/%category%/%postname%/
/%postname%.html
And this design is the most popular and is used on most blogs that are made on the WordPress CMS. Using this construction, your link will look like this: your_site/post_name.html
As you can see, the URL is not much different from the second option, the only difference is the ending, the latter has added .html. This is exactly the type that search engines approve of, and it is this design that I recommend using when setting up permanent CNC links. Well, that's not all.
Now we need to install a plugin that will convert Russian characters into Latin.
After setting up the CNC, without using a plugin, our pages will look like this: your_site.ru/article_name.html. The title of the article will be shown in Russian. The Russian language will not be displayed correctly everywhere, so it is recommended to convert Russian letters to Latin.
This is done using the CyrToLat plugin. You can download it from this link. Installed using standard methods.
An alternative to this plugin is the RusToLat plugin. It performs the same functions as CyrToLat; I have RusToLat installed, since it came with the lecactus assembly.
Installed one of the plugins, activated it and that’s it! This completes the CNC setup in WordPress, and your links have a beautiful, human-readable appearance: vash-sait/nazvanie-stati.html.
It is advisable to initially configure the CNC and not change it in the future, because links to articles will be lost, pages will fall out of the index, if the links have not been configured for a long time, and traffic has already started from search engines, that is, visitors, there will be a temporary drawdown in positions and in the number of visitors.
But don’t worry, time will pass and your articles will be in the TOP again.
That's it for me, now you know what CNC is and how to set up permalinks on the WordPress CMS.
Subscribe to blog updates, follow the news, take part in promotions, competitions and win valuable prizes.
Do you have CNC setup? Was this article helpful? I look forward to your comments.
P.S I changed the link structure on my blog, I want to conduct a small experiment, I deleted categories from the index. Do you think it will be in vain or will there still be a result?
Look how easy it is to move :)
Best regards, Mikhed Alexander.
The world of the Internet is developing rapidly and conquering new heights. Millions of sites, services and services are happy to welcome another user to their pages. A huge number of addresses have been created that are generated automatically. And it’s not always convenient to read and remember them. In addition, a meaningless set of characters ranks poorly search engines. As a result, it became necessary to introduce the implementation of the code in such a way that it could appear in a more convenient and pleasing form to the user's eye.
Therefore, in the world of web development, the term CNC links appeared. What this is and how to implement it will be discussed in the article.
In general, CNC is a slang word meaning a human-readable URL. URL - borrowing from the English URL, a uniform resource locator. Human-readable, in turn, means a set of characters in the address bar that is convenient and easy to understand. For example, the generated page address might look like this: http://example.com/index.php?page=name. It doesn’t look very clear and doesn’t show the structure of the site. There are signs that do not carry a semantic load and it is unclear what the page and name mean.
The following URL might look like this: http://example.com/products/new/boat. It is clear here that we are talking about products, and new ones at that, and specifically about a boat. This is a human-readable URL. It is much better indexed by search engines and is shown in search results above the rest. And a person who visits the site will be able to understand that he has entered exactly the right section.
However, CNC links have some limitations. For example, Russian characters cannot be used in the address. They are replaced with a numeric value and a percent sign. Therefore, domestic developers use transliteration of Russian words into Latin. For example, so - oborudovanie or produkcia. Also, an automatically generated CNC link can increase the overall length of the line.
To implement transliteration and conversion to human-readable URLs, we use special means. They are available, as a rule, in content management systems - CMS. CNC links are created automatically, based on the name of the product, article or blog, as well as the section in which it is posted. As a result, when creating new entry When adding a product, a human-readable URL is generated, which is well perceived by both people and machines.
CMS is a content management system that, in a convenient and simple interface, allows you to short time create a full-fledged website. The functionality is expanded due to the presence of a large number ready-made templates, modules and plugins. This allows a person far from languages PHP programming, JavaScript, HTML and related ones, quickly create your own website or blog.
Almost all content management systems have an excellent set of tools in the form of plugins for creating CNC. It is worth taking a closer look at the most common of them.
WordPress is probably the simplest content management system out there. It can greatly simplify the creation of a website or blog from scratch in a short time.
Setting up CNC in WordPress is simple and basically involves downloading and installing the Cyr-To-Lat plugin. It is used to convert Cyrillic strings to Latin.
First you need to find it and download it. It is better to do this from the official WordPress website. This way you can avoid the possibility of malicious or adware code getting into the plugin.
In addition to Cyr-To-Lat, you can also use analogues that are available on the official website. For example, these are WP Translitera, ACF: Rus-To-Lat, Rus-To-Lat Advanced. Installing these plugins is similar, so it makes no sense to dwell on them separately.
Joomla is a slightly more complex content management system. Just like WordPress, it has the ability to create websites and blogs in a short time. It has extensive functionality and flexibility. Next, you need to describe how to make CNC links in this CMS.
Joomla initially has built-in functionality for creating human-readable URLs. CNC links in Joomla 3 can be enabled on the general settings page in the “SEO Settings” section. The item “Enable SEF (CNC)” should be set to “Yes”. This way the links will be converted into a more understandable form.
Here you can additionally set up URL redirection by creating a CNC link in htaccess. This file acts as a configuration storage for the Apache web server. In it, you can use regular expressions and the RewriteRule directive to change the conversion of the link to the desired URL. The main difference between this approach is flexibility. You can give links to almost any type.
The “Add suffix to URL” item adds the document extension to the end of the line. For example, html. This extension is of little interest to the average website visitor, so the option can be left in the “No” position.
Aliases in Unicode - this item transliterates the name of the material into Latin. This is necessary so that instead of Russian letters or other symbols something awkward and unreadable is not displayed.
You can also implement a CNC link generator in Joomla using various components. For example, one of the popular ones is JoomSEF. It is distributed free of charge and it is better to download it from the official Joomla website.
Its functionality, in addition to converting URLs into CNC, includes a set for generating metadata, search engines, keywords, as well as managing duplicate pages. It is worth noting the available support for UTF-8 encoding and customization of the 404 page at your discretion.
There are three installation methods available in Joomla 3: downloading directly from your computer, from the site directory, and by sending a link to it.
For the first option, you will have to download the file. Then select “Extensions” from the CMS administrative panel menu and go to “Extensions Manager”. Using the “Select file” button, you need to show the system the prepared archive and install it.
The second option is rarely used. But the third is the most convenient of them, since it does not require downloading. You just need to copy the link to JoomSEF and specify it in the “Install from URL” field on the tab of the same name. The system itself will check for its presence and install it if all parameters match.
It is worth noting that for the add-on to work fully, you need to have the “Enable SEF”, “URL Redirection” and “Add suffix to URL” items in SEO settings were switched to the “Yes” position.
The installed component will immediately be integrated into the system in active mode and begin its work. Namely, it converts all existing links into a more aesthetic appearance.
JoomSEF has big amount settings and options. With their help, you can very subtly bring all the site links to almost any necessary form.
The JBZoo component is a universal and powerful tool for creating online stores, catalogs, blogs and simply business card sites based on the Joomla content management system.
To install JBZoo in Joomla, it must already have the Zoo add-on.
Sometimes the standard SEF settings don't reach their components enough to perform the conversion. Therefore, it is recommended to use the sh404SEF component to create CNC links in JBZoo. This product free and is good tool for generating links in JBZoo. settings, functions, support for various social networks and services.
Installation is done by copying the link to the archive, or by directly uploading a previously downloaded file to the server.
OpenCart is a platform that is not tied to any content management system. That is, it functions separately. Its main focus is convenient creation online stores of varying degrees of complexity. Although the product itself is free, many add-ons are distributed on a commercial basis. The latest stable version is 2.0.
You can start setting up the CNC in the first way by editing the htaccess configuration file of the Apache web server.
Sometimes, due to some reasons, many addresses still do not change and remain unclear. To implement this task, you can use the SeoPro component. True, before installing it you will first have to implement OCMOD Multiline Fix. To do this, you need to manually change the code of one file. It is located at admin/controller/extension/modification.php. To edit it, it is recommended to use the Notepad++ utility to avoid problems with encodings.
You only need to add one line of code to the block after the $limit variable. She looks like this:
and after it add:
Then you need to actually install the SeoPro module itself. The downloaded archive must be unpacked on the server. Then run a couple of database queries using phpmyadmin:
Now we need to edit the main index.php file. The line you are interested in is:
which is replaced by:
Next, there is a set of procedures related to settings inside the admin panel. In the menu you need to find “Modules”, go to “Modifiers” and click on updates. While here, you need to go to the “Modules” list and install SeoPro in it. Then, by clicking the “Edit” button, go into it and save. After all the manipulations, everything should work; if not, then you need to try reinstalling the module again. Or seek help from specialized forums.
Most sites on the Internet are written in PHP. It is quite powerful, convenient and easy to learn. Its work is invisible to the user, since the PHP code is processed on the server side and a ready-made HTML page that is understandable to the browser is sent to the browser.
You can show the implementation of CNC links in PHP using a small code example. However, to bring address lines in real multi-page projects to a human-readable form, you will have to tinker.
Any website starts its work with the index.php file. It also generates hits to other pages of the site. But first you need to change the htaccess configuration file a little. In it you need to specify or uncomment several directives, as shown in the photo.
The first line allows you to resolve the URL using the server. The second one sets the base address. The next two lines check for the presence of the file and folder. The latter transfers control to index.php if lines 3 and 4 are implemented without errors.
To store the correspondence between the page id and its converted value, a table is needed. Therefore it must be created. In particular, you can create a simple one to understand the process. It will contain two fields: SEF and page_id. SEF stores the name and is of type varchar. And page_id are page numbers of type int.
Now it remains to correct the index.php file itself. This is just an example and in practice for a specific project everything may be slightly different: $result = $_SERVER["REQUEST_URI"]. In this line, the requested URL is transferred to the $result variable.
This block checks for the presence of symbols, numbers and some signs. If there is something other than those listed, then a 404 page is displayed.
An array $array_url is declared here, into which, using the preg_split function, elements that do not have anything extra in the CNC are placed.
Here the request is processed in the case when the request was not made to specific page, and to the domain. Therefore, you need to respond with id = 1. Also at this point there is a query to the project database, which finds out whether it has a value from the $sef_value variable in the SEF field. If nothing is found, send the user a 404 page. At the end, the resulting address code is processed and the corresponding materials or elements are returned.
The advantages of using human-readable URLs can be listed as follows:
There are far fewer disadvantages. And the most significant of them is setting. It is not always possible to bring page addresses to a human-understandable form using standard or third-party solutions. Sometimes you have to delve into the code and edit it yourself, which requires knowledge and time. The second drawback is not so significant and concerns sites with high traffic. Due to the formation of links on the fly, the load on the site increases. But since the cost network equipment is steadily decreasing, few people consider such costs for server resources. In general, the advantages far outweigh the disadvantages, so although human-readable URLs are difficult to implement, they are worth using.
The article discusses which links are CNC and which are not. The most simple and quick solutions Problems. And also several of the most available options complex approaches. In any case, using a CMS when developing a website significantly reduces labor and time costs when optimizing page addresses. Therefore, a combination of CMS and CNC should be used as the most effective alternative to manual development.
Today we will touch on the topic of WordPress CNCs - or as they are also called human-readable URLs. We will need them so that the page addresses are correct, they are easy to read, and the correct URL addresses are a plus for search engine promotion of sites. After reading this article, you will learn how to make them beautiful and automatically translate them into English language.
To configure, you need to go to the administrative panel at site.ru/wp-admin/, where site.ru is the address of your project. Go to the settings section, and then go to the “Permanent Links” tab. The following window will appear in front of us:
I have marked the field with an arrow that we will now work with. Let's figure out what the output of links on a blog can be? There are many taxonomy options, and we will look at each of them.
For convenience, more popular CNC configuration options are displayed in the settings. For this blog, I chose the /%postname%.html structure. That is, I display the title of the post and add .html at the end.
I would like to note that I also manually change entries to shorter ones. If my entry is called “ Correct setting CNC on WordPress”, then I prefix it with “nastrojka-chpu-wordpress.html”, inserting the necessary keywords there. From my own experience I can say that it is optimal when there are 2-4 words in the CNC.
Don’t forget that in addition to posts and pages, we also have categories and tags on our blog. By default, for categories we display the word category, and for tags tag. Those. The site structure initially looks like this:
Where site.ru is the address of your website, and wordpress is the name of the category or tag. If you want to change these values, then simply set the values you need in the appropriate fields and the link structure will change, for example, to this:
So in a simple way Permanent links for categories and tags are changing.
For automatic translation I use all pages in Russian pluginCyr-To-Lat. I already wrote, so I think adding a new plugin from the repository will not take you much time. Many still use pluginRus-To-Lat, but I chose another one because if you have already added many posts, categories and categories, you will have to manually change the already existing categories and posts. Of course, it will automatically change new entries, but you may already have 100-200 entries added, and this is not fast.
And the Cyr-To-Lat plugin, after activation, will automatically change all existing addresses to English - and I consider this a big advantage over its analogue. This is how easy it is to set up a CNC on a WordPress blog; if something is not clear to you, just watch the video tutorial at the end of the article.
Also, if you like the posts, subscribe to RSS and add us to in social networks! See you again on the pages of this blog!