dorsetdigital/silverstripe-url-rewriter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dorsetdigital/silverstripe-url-rewriter

最新稳定版本:v1.0.1

Composer 安装命令:

composer require dorsetdigital/silverstripe-url-rewriter

包简介

Rewrites the URLs of a SilverStripe site

README 文档

README

Provides a simple method of rewriting the URLs of assets. This was developed primarily for use with the SilverStripe S3 assets module, allowing a quick method of using a CloudFront distribution to serve assets instead of linking directly to the S3 bucket.

Requirements

*Silverstripe 4.x

Installation

  • Install the code with composer require dorsetdigital/silverstripe-url-rewriter
  • Run a dev/build?flush to update your project

Usage

The module won't make any changes to your site unless you do a bit of configuration. There are a few options you can set, done in a yml file:

---
Name: rewriteconfig
---

DorsetDigital\URLRewriter\Middleware:
  rewrite_enabled: true
  old_url: 'https://old.example.com'
  new_url: 'https://cdn-distribution.example.com'  
  enable_in_dev: true

The options are hopefully fairly self explanatory:

Notes

  • The module is disabled in the CMS / admin system, so rewrites do not currently happen here
  • When enabled, the module will always add an HTTP header of X-Rewrites: Enabled to show that it's working, even if none of the other rewrite operations are carried out. If this is not present and you think it should be, ensure that you have set cdn_rewrite to true, that you have specified the cdn_domain in your config file and that you have enable_in_dev set to true if you are testing in dev mode.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-09-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固