Opencart version 2.3, the task was to make all URLs like /category/subcategory/product and remove links to http://domain-name/product (from the root). Duplicates for SEO are not cool, the task is simple. To combine URLs and bring them to the standard, it is enough to select Seo Pro in the System – …
Read More »SEO optimization
Canonical for pagination in Opencart below version 3
Pagination pages may not have canonicals at all by default. To add their automatic generation, open the file /catalog/controller/product/category.php and in it after the line $this->load->model(‘tool/image’); add the following code: if (isset($this->request->get['page'])) { $page = $this->request->get['page']; $pathx = explode('_', $this->request->get['path']); $pathx = end($pathx); $this->document->addLink($this->url->link('product/category', 'path=' . $pathx ), 'canonical'); } …
Read More »Redirect 301 from https to http
This is one of the examples of the implementation of redirection from https to http. RewriteEngine on RewriteCond %{HTTP:HTTPS} =on [NC] RewriteRule ^(.*)$ http://domainname/$1 [R=301,L]
Read More »Include the file and generate title
It happens that the generated data is stored in a separate file. And the task is to output, for example, titles with a preliminary check of already existing values (not empty) in a third-party file. An example of the implementation is below: <?php include($_SERVER['DOCUMENT_ROOT']."/seo.php"); if(isset($seoh1) AND $seoh1!='') { echo $seoh1; …
Read More »Title for bitrix pagination
I will not describe why this is necessary, I will only publish a ready-made solution. else echo $APPLICATION->ShowProperty("meta_title"); if (isset($_GET['PAGEN_1']) && $_GET['PAGEN_1']!=1) { echo " Page ".$_GET['PAGEN_1']; } if (isset($_GET['PAGEN_2']) && $_GET['PAGEN_2']!=1) { echo " Page ".$_GET['PAGEN_2']; } if (isset($_GET['PAGEN_3']) && $_GET['PAGEN_3']!=1) { echo " Page ".$_GET['PAGEN_3']; } The disadvantage …
Read More »How to remove wpemoji from the WordPress
Many people think that emoticon icons should be bright and pretty. And WordPress decided that from version 4.2 it would be super-modern if a lot of garbage was added to its source code. Now in the head of your site, you can see code like this: To free WordPress from …
Read More »