{"repo":"spatie/laravel-missing-page-redirector","free":true,"listed":false,"github":"https://github.com/spatie/laravel-missing-page-redirector","clone":"git clone https://github.com/spatie/laravel-missing-page-redirector.git","description":"Redirect missing pages in your Laravel application","language":"PHP","stars":511,"topics":["laravel","php","seo","redirect"],"license":"MIT","category":"databases-storage","readme_excerpt":"Redirect missing pages in your Laravel application When transitioning from a old site to a new one your URLs may change. If your old site was popular you probably want to retain your SEO worth. One way of doing this is by providing permanent redirects from your old URLs to your new URLs. This package makes that process very easy. When installed you only need to add your redirects to the config file. Want to use the database as your source of redirects? No problem! Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: The package will automatically register itself. Next, prepend/append the Spatie\\MissingPageRedirector\\RedirectsMissingPages middleware to your global middleware stack: Finally you must publish the config file: This is the contents of the published config file: Usage Creating a redirect is easy. You just have to add an entry to the redirects key in the config file. You may use route parameters like you're used to when using Laravel's routes: Optional parameters are also... an option: Finally, you can use an asterix ( ) as a wildcard parameter that will match multiple URL segments (see encoded URL sl","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-missing-page-redirector/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}