gorkalaucirica/redirect-checker

自动URL重定向检查器

v0.3.1 2019-04-12 07:29 UTC

README

自动URL重定向检查器

功能

  • 自动测试应用中的URL重定向
  • 添加源URL和目标URL以确保重定向正常工作
  • 无缝集成到现有项目中
  • 简单的YAML文件定义测试

安装和使用

  1. 使用Composer安装此组件
$ composer require gorkalaucirica/redirect-checker
  1. 创建您的yaml文件
# tests/redirections/example.yml
https://google.com/services: https://www.google.com/services/
http://google.es/preferences: https://www.google.es/preferences
http://support.google.com: https://support.google.com/
  1. 运行命令
$ ./bin/redirect-checker yaml tests/redirections/example.yml
$ ./bin/redirect-checker yaml tests/redirections/example-non-absolute.yml --base-url="https://www.google.com" 

许可选项

License