vdlp / oc-redirectconditionsuseragent-plugin
为重定向插件添加特定UserAgent的条件。
1.1.1
2023-06-12 11:36 UTC
Requires
- php: ^8.0.2
- composer/installers: ^1.0 || ^2.0
- matomo/device-detector: ^6.0
- vdlp/oc-redirectconditions-plugin: ^1.3
This package is auto-updated.
Last update: 2024-09-14 15:07:06 UTC
README
这是一个为OctoberCMS的重定向插件(Redirect)的扩展插件。
需求
- 插件
Vdlp.Redirect
- 插件
Vdlp.RedirectConditions
条件
CrawlerCondition
如果请求来自爬虫,则匹配成功时将进行重定向。
DeviceCondition
如果请求来自特定设备,则匹配成功时将进行重定向。
可选的设备类型
- 智能手机
- 平板电脑
- 桌面电脑
OperationSystemCondition
如果请求来自特定操作系统,则匹配成功时将进行重定向。
可选的操作系统家族
- Android
- AmigaOS
- Apple TV
- BlackBerry
- Brew
- BeOS
- Chrome OS
- Firefox OS
- 游戏机
- Google TV
- IBM
- iOS
- RISC OS
- GNU/Linux
- Mac
- 移动游戏机
- 实时操作系统
- 其他移动设备
- Symbian
- Unix
- WebTV
- Windows
- Windows Mobile
单元测试
要运行此插件的单元测试,请从项目根目录执行以下命令
vendor/bin/phpunit plugins/vdlp/redirectconditionsuseragent
有问题吗?需要帮助吗?
如果您对如何使用此插件有任何疑问,请随时通过octobercms@vdlp.nl联系我们。我们很高兴为您提供帮助。您还可以访问支持论坛并在那里提出问题/问题。