How to make CNC links: step by step instructions

. , . , . . . , .

- -. , , .

-

, - , . - URL, . , , , . , : http://example.com/index.php?page=name. . , , .

: http://example.com/products/new/boat. , , , - . . . , , , .

cnc links




- . , . . . , - oborudovanie produkcia. - .





. , , - CMS. - , , , , . , , , , .

cnc wordpress links




CMS

CMS — , , . , . PHP, JavaScript, HTML , .

. .

  • WordPress — , , . . .
  • Joomla — , . , , .
  • OpenCart — -. CMS, «» .

- WordPress —

WordPress , , . .









WordPress Cyr-To-Lat. .

how to make cnc links




. WordPress. .

  • .
  • wp-content ->plugins. , , FTP .
  • WordPress, .
  • «» Cyr-To-Lat . .

, .

  • «», « ».
  • , . «», , . - /%category%/%postname%/. , , .
  • Cyr-To-Lat . , - WordPress.

Cyr-To-Lat, , . , — WP Translitera, ACF: Rus-To-Lat, Rus-To-Lat Advanced. , .

Joomla,

Joomla . , WordPress . . , CMS.

Joomla . - Joomla 3 « SEO». « SEF ()» «». .

jbzoo cnc link




, - htaccess. - Apache. RewriteRule . - . .

« URL» . , html. , «».

creating cnc links




Unicode - . , .

Joomla

- Joomla . , - JoomSEF. Joomla.

, , , , , . UTF-8 404 .

Joomla 3 : , .

. CMS «» « ». « » .

. , . JoomSEF « URL» . .

, , « SEF», « URL» « URL» SEO «».

. , .

JoomSEF . .

JBZoo

JBZoo -, , - Joomla.

JBZoo Joomla Zoo.

SEF , . - JBZoo sh404SEF. JBZoo. , , .

, , .

OpenCart

OpenCart — - . . — - . , . — 2.0.

cnc links opencart 2




- OpenCart 2 .

htaccess - Apache.

  • FTP .
  • .htaccess.txt. txt, , — .htaccess. - .
  • «» .
  • .
  • .

, , . SeoPro. , OCMOD Multiline Fix. . admin/controller/extension/modification.php. Notepad++, .

links are cnc




$limit. :

  • $quote = $operation->getElementsByTagName('search')->item(0)->getAttribute('quote');

, :

  • if (!$limit) {
  • $limit = -1;
  • }

:

  • if ($quote == 'true') {
  • $search = preg_quote($search);
  • }

.

SeoPro. . 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`);

index.php. :

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

:

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

, , . «», «» . , «» SeoPro. , «» . , , . .

PHP

PHP. , . , PHP- HTML-, .

htaccess cnc links




- PHP . , .

index.php. . htaccess. , .

cnc php links




URL . — . . index.php, 3 4 .

id . . , , . : SEF page_id. SEF varchar. page_id - int.

index.php. : $result = $_SERVER['REQUEST_URI']. $result .

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

, . - , 404.

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

$array_url, preg_split , .

  • if (!$array_url) { $ID_page = 1; }else{ $sef_value = $array_url[0];

, , . id = 1. , , $sef_value SEF. , 404. .

:

  • , , ;
  • ;
  • ;
  • GET , , , , , ;
  • ;
  • - .

. - . . , . . - «» . , . , , , .

The article examined which links are CNC and which are not. The most simple and quick solutions to the problem were detailed. As well as some of the most affordable options for complex approaches. In any case, the use of CMS in the development of the site 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.




All Articles