ssx/threeohone

A simple Laravel package to deal with handling 301 redirects.
1,204 1
Install
composer require ssx/threeohone
Latest Version:1.0.0
License:MIT
Last Updated:Sep 25, 2019
Links: GitHub  ·  Packagist
Maintainer: ssx

ThreeOhOne

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

Related Packages

fsasvari/laravel-trailing-slash

Adds redirection with trailing slash in Laravel.

173,659 61
sander-van-hooft/laravel-payable-redirect-mollie

Associate Mollie payments with Laravel Eloquent models

493 21
owenmelbz/https-enforcement

Laravel 5.x middleware to enforce https redirection for your app.

2,597 25
pmk/redirect-october-plugin

Plugin for October CMS to redirect a page to an internal page, or to an external...

32 2
yaroslawww/laravel-force-https

Easy redirect to https for Laravel

9,745 12