ssx/threeohone
最新稳定版本:1.0.0
Composer 安装命令:
composer require ssx/threeohone
包简介
A simple Laravel package to deal with handling 301 redirects.
关键字:
README 文档
README
A simple Laravel package to deal with handling 301 redirects.
Installation
- Add to `"ssx/threeohone": "0.0.1",` to composer.json
- Add Service Provider `SSX\ThreeOhOne\Providers\ThreeOhOneServiceProvider::class` to config/app.php
- Add Global Middleware `\SSX\ThreeOhOne\Middleware\CheckForRedirect::class` to Http/Kernel.php
- Run vendor:publish
- php artisan migrate
- Add records to redirect table
#### Usage Two types of redirect, 'domain' and 'path'. A domain redirect will redirect:
www.site.com/path/to/file.html to http://test.com
A path redirect will ignore the domain only use the requested path, ie:
/path/to/file.html to http://example.com
Which is useful on sites that have subdomains.
Todo
- Add caching
- Add tests
统计信息
- 总下载量: 1.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-30