PHPackages                             kmlpandey77/laravel-redirection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. kmlpandey77/laravel-redirection

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kmlpandey77/laravel-redirection
===============================

This package design for redirect 404 page to new link

v1.0.4(5y ago)11.2k↑83.3%MITPHP

Since Feb 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kmlpandey77/laravel-redirection)[ Packagist](https://packagist.org/packages/kmlpandey77/laravel-redirection)[ RSS](/packages/kmlpandey77-laravel-redirection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (8)Used By (0)

Laravel Redirection
===================

[](#laravel-redirection)

This package design for redirects missing (404) URLs to new URLs.

When redesigning an old site into a new one your URLs may change. If your old site URLs were 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.

A package for handling redirects via database.

### Example

[](#example)

From `example.com/non-existing-page` to `example.com/existing-page`

From `example.com/old-page` to `example.com/new-page`

From `example.com/old/about-us` to `example.com/new/about-us`

Installation
------------

[](#installation)

You can install the package via composer.

`composer require kmlpandey77/laravel-redirection`

The package will automatically register itself.

Next you must register the `\Kmlpandey77\Redirection\Http\Middleware\Redirector` middleware:

```
// app/Http/Kernel.php

protected $middleware = [
    ...
    \Kmlpandey77\Redirection\Http\Middleware\Redirector::class,
];
```

Publish the config file with:

`php artisan vendor:publish --provider="Kmlpandey77\Redirection\RedirectionServiceProvider" --tag="config"`

You can create the `redirections` table by running:

php artisan migrate

Usage
-----

[](#usage)

You just have to add an entry to the redirects links in the database by using `example.com/admin/redirects`. And you can change route link, prifix, and middleware in config

```
return [
    /**
     * By defult route is `admin`
     *
     */
    'prefix' => 'admin',

    /**
     * Defining middleware for route
     */

    'middleware' => [
        'web',
        // 'auth' // or admin
    ],

    /**
     *
     */
    'route_link' => 'redirects'
];
```

Changelog
---------

[](#changelog)

Credits
-------

[](#credits)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

6

Last Release

1919d ago

Major Versions

v0.1 → v1.02021-02-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/180b66b4647bc47172b86b02faaa43a38280faabc339c0d13fc8bcb90244794d?d=identicon)[kmlpandey77](/maintainers/kmlpandey77)

---

Top Contributors

[![kmlpandey77](https://avatars.githubusercontent.com/u/16485204?v=4)](https://github.com/kmlpandey77 "kmlpandey77 (13 commits)")

---

Tags

laravel-redirect

### Embed Badge

![Health badge](/badges/kmlpandey77-laravel-redirection/health.svg)

```
[![Health](https://phpackages.com/badges/kmlpandey77-laravel-redirection/health.svg)](https://phpackages.com/packages/kmlpandey77-laravel-redirection)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
