PHPackages                             backendprogramer/laravel-redirect-panel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. backendprogramer/laravel-redirect-panel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

backendprogramer/laravel-redirect-panel
=======================================

A panel for adding redirects to the `.htaccess` file.

1.0.0(2y ago)08[1 PRs](https://github.com/backendprogramer/laravel-redirect-panel/pulls)MITPHPPHP ^8.1

Since Oct 11Pushed 1y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (10)Versions (3)Used By (0)

[![SnappPay](resources/images/redirect-panel-en.png)](resources/images/redirect-panel-en.png)

Management panel for .htaccess file redirects.
==============================================

[](#management-panel-for-htaccess-file-redirects)

[![Latest Version on Packagist](https://camo.githubusercontent.com/84f52e8af56f66e535449e250b09bef29d82a908dbe091d64d03ec8ea1b1e2e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6261636b656e6470726f6772616d65722f6c61726176656c2d72656469726563742d70616e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backendprogramer/laravel-redirect-panel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/bd52dfb292e8c9eb83567f65be83491092b213fc5b9a8e38867652944d32c948/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6261636b656e6470726f6772616d65722f6c61726176656c2d72656469726563742d70616e656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/backendprogramer/laravel-redirect-panel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/b7b4c76f7074f93ccbcc0e1dd8559ccc494a96ec38666759150768ae8f0d30ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6261636b656e6470726f6772616d65722f6c61726176656c2d72656469726563742d70616e656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/backendprogramer/laravel-redirect-panel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/d3c7b8707c4b3bfa40af75803e9508918c3ae9e378d17ccd1ca5c42ab437a679/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6261636b656e6470726f6772616d65722f6c61726176656c2d72656469726563742d70616e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/backendprogramer/laravel-redirect-panel)

The Redirect Panel provides the capability to manage redirects in the .htaccess file. The Redirect Panel creates a table in the database, and every redirect added is stored both in the database and in the .htaccess file. When you edit or delete a redirect, the changes are also applied to the .htaccess file.

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

[](#installation)

You can install the package via composer:

```
composer require backendprogramer/laravel-redirect-panel
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-redirect-panel-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-redirect-panel-config"
```

This is the contents of the published config file:

```
return [

    /* -----------------------------------------------------------------
     |  htaccess file path
     | -----------------------------------------------------------------
     |  Addressing should be done from the path of the public folder like "../../folder/.htaccess"
     */

    'htaccess'        => '.htaccess',

    /* -----------------------------------------------------------------
     |  Locale
     | -----------------------------------------------------------------
     |  Supported locales :
     |    'auto', 'en', 'fa'
     */

    'locale'        => 'auto',

    /* -----------------------------------------------------------------
     |  Direction
     | -----------------------------------------------------------------
     |  Supported directions :
     |    'ltr','rtl'
     */

    'direction'        => 'ltr',

    /* -----------------------------------------------------------------
     |  redirects per page
     | -----------------------------------------------------------------
     |  This defines how many redirects are displayed per page.
     */

    'per-page'      => 10,

    /* -----------------------------------------------------------------
     |  Colors
     | -----------------------------------------------------------------
     |  You can change color of these classes :
     |  btn-primary, btn-danger, btn-success, btn-secondary, text-danger
     */

    'colors' =>  [
//        'fg-color' => [
//            'btn-primary'       => '',
//            'btn-danger'        => '',
//            'btn-success'       => '',
//            'btn-secondary'     => '',
//            'text-danger'       => '',
//        ],
//        'bg-color' => [
//            'btn-primary'       => '',
//            'btn-danger'        => '',
//            'btn-success'       => '',
//            'btn-secondary'     => '',
//        ],
//        'border-color' => [
//            'btn-primary'       => '',
//            'btn-danger'        => '',
//            'btn-success'       => '',
//            'btn-secondary'     => '',
//        ],
    ],
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-redirect-panel-views"
```

Optionally, you can publish the lang using

```
php artisan vendor:publish --tag="laravel-redirect-panel-lang"
```

Artisan commands
----------------

[](#artisan-commands)

To publish the config and translations files, views and migration run this command:

```
php artisan redirect-panel:publish
```

Usage
-----

[](#usage)

To add to the router, please add the following code to the `routes/web.php` file.

```
Route::redirectPanel('laravel-redirect-panel');
```

Supported localizations
-----------------------

[](#supported-localizations)

LocalLanguage`en`English`fa`farsiTesting
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email `backend.programer.90@gmail.com` instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ali Ghorbani](https://github.com/backendprogramer)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

PREVIEW
-------

[](#preview)

[![English Version](resources/images/redirect-panel-en.png)](resources/images/redirect-panel-en.png)[![Persian Version](resources/images/redirect-panel-fa.png)](resources/images/redirect-panel-fa.png)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

942d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da7f74b1f66ebbd35d53b1ca8edd739d7777c319d71b4e7f6042f7bdef13e8cd?d=identicon)[backendprogramer](/maintainers/backendprogramer)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![backendprogramer](https://avatars.githubusercontent.com/u/115031769?v=4)](https://github.com/backendprogramer "backendprogramer (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelbackendprogramerlaravel-redirect-panel

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/backendprogramer-laravel-redirect-panel/health.svg)

```
[![Health](https://phpackages.com/badges/backendprogramer-laravel-redirect-panel/health.svg)](https://phpackages.com/packages/backendprogramer-laravel-redirect-panel)
```

###  Alternatives

[leandrocfe/filament-apex-charts

Apex Charts integration for Filament PHP.

4861.2M8](/packages/leandrocfe-filament-apex-charts)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[codebar-ag/laravel-filament-json-field

A Laravel Filament JSON Field integration with CodeMirror support

1124.1k](/packages/codebar-ag-laravel-filament-json-field)

PHPackages © 2026

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