t3n/seo-routing
Composer 安装命令:
composer require t3n/seo-routing
包简介
Flow Framework Router to ensure a trailing slash
README 文档
README
t3n.SEO.Routing
This package has 2 main features:
- trailingSlash: ensure that all links ends with a trailing slash (e.g.
example.com/test/instead ofexample.com/test) - toLowerCase: ensure that camelCase links gets redirected to lowercase (e.g.
exmaple.com/lowercaseinstead ofexmaple.com/lowerCase)
You can de- and activate both of them.
Another small feature is to restrict all new neos pages to have a lowercased uriPathSegment. This is done by extending the NodeTypes.Document.yaml.
Installation
Just require it via composer:`
composer require t3n/seo-routing
Configuration
Standard Configuration
In the standard configuration we have activated the trailingSlash (to redirect all uris without a / at the and to an uri with / at the end) and do all redirects with a 301 http status.
Note: The lowercase redirect is deactivated by default, cause you have to make sure, that there is no uriPathSegment with camelCase or upperspace letters - this would lead to redirects in the neverland.
t3n:
SEO:
Routing:
redirect:
enable:
trailingSlash: true
toLowerCase: false
statusCode: 301
blacklist:
'/neos/.*': true
Blacklist for redirects
By default, all /neos/ URLs are ignored for redirects. You can extend the blacklist array with regex as you like:
t3n: SEO: Routing: #redirect: #... blacklist: '/neos/.*': true
t3n/seo-routing 适用场景与选型建议
t3n/seo-routing 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11.23k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 05 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 t3n/seo-routing 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 t3n/seo-routing 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 11.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-03