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

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

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

thelia/thelia-redirect-url-module

Composer 安装命令:

composer require thelia/thelia-redirect-url-module

包简介

README 文档

README

The goal of this module is to redirect 404 urls with 302 or 301 redirections (temporary or permanent).

Installation

Manually

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

Composer

Add it in your main thelia composer.json file

composer require thelia/thelia-redirect-url-module:~0.3.0

Usage

The configuration is very simple :

  • You can add redirections one by one in the module configuration
  • You can import a file with all your redirections in Tools, Import, Redirected urls.

Others

Be sure that you use the following format for your urls : 'path' + 'parameters'

for example :

  • '/'
  • '/contact.html'
  • '/contact.html?user_id=12&message=hello'

The module will catch 404 response from Thelia and check if the request uri has a matching url in the redirect_url table. If not, it will then check with the pathInfo. If it finds a match, it will redirect to the temporary redirect if it is provided , else if will redirect to the redirect column (which is mandatory).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2016-04-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固