2017 © Pedro PelĂĄez
 

library threeohone

A simple Laravel package to deal with handling 301 redirects.

image

ssx/threeohone

A simple Laravel package to deal with handling 301 redirects.

  • Monday, September 4, 2017
  • by ssx
  • Repository
  • 1 Watchers
  • 1 Stars
  • 104 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

ThreeOhOne

A simple Laravel package to deal with handling 301 redirects., (*1)

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:, (*2)

www.site.com/path/to/file.html to http://test.com

A path redirect will ignore the domain only use the requested path, ie:, (*3)

/path/to/file.html to http://example.com

Which is useful on sites that have subdomains., (*4)

Todo

  • Add caching
  • Add tests

The Versions

04/09 2017

dev-master

9999999-dev

A simple Laravel package to deal with handling 301 redirects.

  Sources   Download

MIT

The Development Requires

laravel redirect 301 404

04/01 2016

1.0.0

1.0.0.0

A simple Laravel package to deal with handling 301 redirects.

  Sources   Download

MIT

The Development Requires

laravel redirect 301 404

30/10 2015

0.0.2

0.0.2.0

A simple Laravel package to deal with handling 301 redirects.

  Sources   Download

MIT

The Development Requires

laravel redirect 301 404

30/10 2015

0.0.1

0.0.1.0

A simple Laravel package to deal with handling 301 redirects.

  Sources   Download

MIT

The Development Requires

laravel redirect 301 404