spatie / laravel-missing-page-redirector

Redirect missing pages in your Laravel application
https://freek.dev/598-retain-your-seo-worth-by-correctly-redirecting-missing-pages-in-a-laravel-application
MIT License
488 stars 37 forks source link

Database instead of config file #65

Closed timmoh closed 3 years ago

timmoh commented 3 years ago

Is there an Option to use a database table for redirect?

so instead of

'redirects' => [
//        '/non-existing-page' => '/existing-page',
//        '/old-blog/{url}' => '/new-blog/{url}',
    ],

use DB Tables/Model

freekmurze commented 3 years ago

You can create your own redirector class that use the DB: https://github.com/spatie/laravel-missing-page-redirector#creating-your-own-redirector