WordPress CNC Setup - Permalinks

13.09.2020 SSD drives

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.

The main advantages of CNC for site users:

— URLs in this form are easy to remember.

How CNC contributes to SEO optimization of a WordPress site:

  • Links are posted in transliteration;
  • The link explains the structure of the site;
  • Having a clear URL affects search rankings.

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.

How to set up CNC in WordPress?

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.

Conclusion

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:

  1. Ease of perception for users. Readable URLs are much better perceived than a bunch of incoherent characters.
  2. Many users tend to move to a “higher” level of the site by simply erasing part of the URL. If you configure the CNC correctly, you can easily get from a post to the category in which it is published in this way.
  3. CNC is loved not only by users, but also by search engines. In fact, the URL becomes another place where a keyword or phrase is added to which the site page is tailored. This should under no circumstances be neglected. Remember, there are no trifles in SEO!

Customizing a CNC Template in WordPress

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.

Installing the RusToLat plugin

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.

Setting up a 301 redirect

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.

What is CNC? Why set up permalinks (PCL)?

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.

Setting up permalinks (PLE) for WordPress

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.

Installing and configuring the CyrToLat plugin

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.

What are CNC links

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.

How to make CNC links in popular CMS

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 the most popular content management system, according to statistics. It is installed on most famous blogs and websites. It is famous for its ease of learning and installation.
  • Joomla is less popular, but is still actively used among developers. It has good functionality, a selection of components, plugins and modules.
  • OpenCart is a separate project for creating online stores. Internally it resembles any CMS, but is “tailored” to solve a narrow range of tasks.

CNC Links in WordPress - Easy to Implement

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.

  • After downloading the archive, you need to unpack it.
  • Then you need to move this folder to the wp-content -> plugins section. This is usually done using any available FTP manager.
  • Now you need to log into the WordPress admin panel by entering your username and password.
  • In the “Plugins” section you need to find Cyr-To-Lat and activate it. The plugin is now installed on the system and enabled.
  • To do this, go to “Options”, and there go to “Permanent Links”.
  • In the general settings there are several templates that you can use to build the appearance of the link. It is recommended to use the “Custom” type, which allows you to configure everything as needed. The simplest design for such a template is /%category%/%postname%/. This means that the category will be displayed in the address bar, followed by the title of the post.
  • And then Cyr-To-Lat converts all this into Latin. As a result, you will get a beautiful and understandable CNC link in WordPress.

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.

CNC in Joomla, several options for creating

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.

Alternative components for Joomla

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.

JBZoo and a human-readable URL

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 and CNC setup

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.

  • To do this, you need to go to the site folder via FTP or the file manager available in the administrative memory.
  • The root directory should contain the .htaccess.txt file. Since it has no effect on a system with a txt extension, the first thing to do is rename it to .htaccess. Now the web server will read its directives and execute them.
  • Now you need to go to the site settings and on the “Server” tab enable the use of CNC.
  • All changes must be saved.
  • Now all links should change.

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:

  • $quote = $operation->getElementsByTagName("search")->item(0)->getAttribute("quote");
  • if (!$limit) (
  • $limit = -1;

and after it add:

  • if ($quote == "true") (
  • $search = preg_quote($search);

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:

  • ALTER TABLE `oc_product_to_category` ADD `main_category` tinyint(1) NOT NULL DEFAULT "0"; ALTER TABLE `oc_product_to_category` ADD INDEX `main_category` (`main_category`);

Now we need to edit the main index.php file. The line you are interested in is:

  • $controller->addPreAction(new Action("common/seo_url"));

which is replaced by:

  • if (!$seo_type = $config->get("config_seo_url_type")) (
  • $seo_type = "seo_url";
  • $controller->addPreAction(new Action("common/" . $seo_type));

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.

Implementation of CNC functionality in PHP language

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.

  • if (preg_match ("/([^a-zA-Z0-9\.\/\-\_\#])/", $result)) ( header("HTTP/1.0 404 Not Found"); echo "Invalid characters in URL"; exit; )

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.

  • $array_url = preg_split("/(\/|\..*$)/", $result,-1, PREG_SPLIT_NO_EMPTY);

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.

  • if (!$array_url) ( $ID_page = 1; )else( $sef_value = $array_url;

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.

Pros and cons of using CNC

The advantages of using human-readable URLs can be listed as follows:

  • the link visually looks more aesthetically pleasing than a set of incomprehensible symbols, especially on unfamiliar sites;
  • remembering the address is much easier;
  • the entire path and structure of the site becomes clear;
  • GET parameters transmitted in the usual way use variables in the address line, which is not the case in the CNC, which means that security is not violated;
  • improving site navigation;
  • SEO optimization is significantly improved and search robots Such a site is better indexed.

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.

Conclusion

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.

Setting up CNC WordPress

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.

  • %year%– output of the year the entry was written.
  • %monthnum%– output of the month the entry was written.
  • %day%– output of the day the entry was written.
  • %hour%– output of the hour of writing the entry.
  • %minute%– displays the minute the entry was written.
  • %second%– displays the second the entry was written.
  • %post_id%– output of a unique identifier for your post.
  • %postname%– output of the post title.
  • %category%– output of the entry category.
  • %author%- conclusion of the author who wrote the entry.

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.

Installing CNC for headings and tags on a blog

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:

  • Site.ru/category/wordpress/
  • Site.ru/tag/wordpress/

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:

  • Site.ru/topics /wordpress/
  • Site.ru/about/wordpress/

So in a simple way Permanent links for categories and tags are changing.

Automatic translation of URL into English.

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!