定制 thelia/canonical-url-module 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thelia/canonical-url-module

Composer 安装命令:

composer require thelia/canonical-url-module

包简介

README 文档

README

This module generates a canonical URL for every page of your shop. Once activated, you'll find a <link rel="canonical" href="..." /> tag in the header of your pages.

Examples

  • If the page URL is not rewritten, the canonical URL will contain all the URL parameters. Example for : For URL http://demo.thelia.net/?view=product&locale=en_US&product_id=18

    <link rel="canonical" href="http://demo.thelia.net/?view=product&locale=en_US&product_id=18" />

    Obviously, this is far from ideal. Consider activating URL rewriting !

  • When the page URL contains the script name (index.php), it will be removed from the canonical URL. Example, the canonical URL of http://demo.thelia.net/index.php?view=product&locale=en_US&product_id=18 is :

    <link rel="canonical" href="http://demo.thelia.net/?view=product&locale=en_US&product_id=18" />

    When a rewritten URL contains parameters, these parameters a removed. For http://demo.thelia.net/index.php/en_en-your-path.html?page=44, the canonical URL is :

    <link rel="canonical" href="http://demo.thelia.net/en_en-your-path" />
  • If the page URL contains a domain which is not the main shop domain, this domain is replaced by the main shop domain. For http://demo458.thelia.net/index.php/en_en-your-path.html?page=44 the canonical URL is :

    <link rel="canonical" href="http://demo.thelia.net/en_en-your-path" />

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is CanonicalUrl.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/canonical-url-module:~2.1

Usage

You just have to activate the module and check the meta tags of your shop.

The canonical will be generated automatically but you can define a canonical url in seo form for each item if you want override the generated url.

统计信息

  • 总下载量: 32.27k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2016-01-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固