PHPackages                             sulu/redirect-bundle - 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. sulu/redirect-bundle

ActiveSulu-bundle[Utility &amp; Helpers](/categories/utility)

sulu/redirect-bundle
====================

Sulu bundle for managing redirects

2.1.4(1y ago)21235.1k↓28.2%20[2 PRs](https://github.com/sulu/SuluRedirectBundle/pulls)MITPHPPHP ^7.2 || ^8.0CI passing

Since Mar 20Pushed 3mo ago10 watchersCompare

[ Source](https://github.com/sulu/SuluRedirectBundle)[ Packagist](https://packagist.org/packages/sulu/redirect-bundle)[ Docs](https://github.com/sulu/SuluRedirectBundle)[ RSS](/packages/sulu-redirect-bundle/feed)WikiDiscussions 3.0 Synced 1mo ago

READMEChangelog (10)Dependencies (31)Versions (20)Used By (0)

SuluRedirectBundle
==================

[](#suluredirectbundle)

 [ ![Official Sulu Bundle Badge](https://camo.githubusercontent.com/8ac484ac60dbf97b4f747c6d0f704a16d2c005414d62dfcb2525b7c4cbf82466/68747470733a2f2f73756c752e696f2f75706c6f6164732f6d656469612f383030782f30302f3233302d4f6666696369616c25323042756e646c652532305365616c2e7376673f763d322d3626696e6c696e653d31) ](https://sulu.io/)

 [ ![GitHub license](https://camo.githubusercontent.com/5c727b7fb331a60a8999393e4f55dfdd93a7193897ecb50a84189d22cfed6ed3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73756c752f53756c75526564697265637442756e646c652e737667) ](LICENSE) [ ![GitHub tag (latest SemVer)](https://camo.githubusercontent.com/ffb3fda63f64bf8b83e2f17f164f0f77beb711c5a74454c27e443e4c28dde1d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f73756c752f53756c75526564697265637442756e646c652e737667) ](https://github.com/sulu/SuluRedirectBundle/releases) [ ![Test workflow status](https://camo.githubusercontent.com/b70bcccddddaa74362b91352060b2d05fa285fb1a29ca86b2de295bb43471dc8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73756c752f53756c75526564697265637442756e646c652f746573742d6170706c69636174696f6e2e79616d6c) ](https://github.com/sulu/SuluRedirectBundle/actions) [ ![Sulu compatibility](https://camo.githubusercontent.com/90a56b0395c28be216880d53f87f9c4ad379b6bdad189115e0561c508f899d2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73756c75253230636f6d7061746962696c6974792d2533453d322e302d3532623663612e737667) ](https://github.com/sulu/sulu/releases)

The SuluRedirectBundle adds simple but powerful capabilities for managing redirects to Sulu’s administration interface and allows content managers to manage redirects without any knowledge of web servers.

 [![SuluRedirectBundle Slideshow](https://camo.githubusercontent.com/02d635bf9b4ed237cb999507c5590c34dc88df0fcf66ed65aa33d53567df1c3c/68747470733a2f2f73756c752e696f2f75706c6f6164732f6d656469612f383030784032782f30322f3334322d53756c75526564697265637442756e646c65253230536c69646573686f772e6769663f763d312d30)](https://camo.githubusercontent.com/02d635bf9b4ed237cb999507c5590c34dc88df0fcf66ed65aa33d53567df1c3c/68747470733a2f2f73756c752e696f2f75706c6f6164732f6d656469612f383030784032782f30322f3334322d53756c75526564697265637442756e646c65253230536c69646573686f772e6769663f763d312d30)

The SuluRedirectBundle is compatible with Sulu **starting from version 2.0**. Have a look at the `require` section in the [composer.json](composer.json) to find an **up-to-date list of the requirements** of the bundle.

🚀 Installation and Documentation
--------------------------------

[](#-installation-and-documentation)

Execute the following [composer](https://getcomposer.org/) commands to add the bundle to the dependencies of your project:

```
composer require sulu/redirect-bundle
```

Afterwards, visit the [bundle documentation](Resources/doc/README.md) to find out **how to set up and configure the SuluRedirectBundle** to your specific needs.

💡 Features
----------

[](#-features)

### Importing redirects

[](#importing-redirects)

One of the great features of this bundle is the ability to import redirects from a CSV file. The most simplified file just contains two columns, `source` and `target`. Of course, all the other options like `statusCode`, `sourceHost`, and `enabled` can also be set in the import file.

It’s also possible to override existing redirects with an import; you just have to set the same value for `source`.

### Enabling and disabling redirects

[](#enabling-and-disabling-redirects)

Sometimes it’s necessary to prepare redirects which are not ready yet, especially if you have a large number of redirects. Of course there’s a solution for that — toggler in the toolbar to enable or disable redirects quickly. This allows you to import a large number of disabled redirects and then check them in the administration interface, before enabling them when needed.

### Different statuses

[](#different-statuses)

The SuluRedirectBundle comes with three different statuses to be used for redirects:

- **301** Moved permanently
- **302** Moved temporarily
- **410** Gone

Those status codes are explained in detail [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status).

### Automatic `Gone` redirects

[](#automatic-gone-redirects)

This bundle also adds the possibility to automatically create redirects with status `410 Gone`, if a page or a entity with a route has been removed. This is very useful, because now search engines know, that this page has been deleted.

### Route Priorities

[](#route-priorities)

Redirects created via this bundle will only be used if no other route matches the given URL. This ensures that accidentally created or imported redirects do not affect existing pages. If a redirect matches the URL of an existing page, the redirect will only be effective after the page was unpublished.

In combination with the [SuluAutomationBundle](https://github.com/sulu/SuluAutomationBundle), this behaviour makes it possible to precautionarily create a redirect for the URL of an existing page that will be unpublished at a specified time in the future by the SuluAutomationBundle.

❤️ Support and Contributions
----------------------------

[](#️-support-and-contributions)

The Sulu content management system is a **community-driven open source project** backed by various partner companies. We are committed to a fully transparent development process and **highly appreciate any contributions**.

In case you have questions, we are happy to welcome you in our official [Slack channel](https://sulu.io/services-and-support). If you found a bug or miss a specific feature, feel free to **file a new issue** with a respective title and description on the the [sulu/SuluRedirectBundle](https://github.com/sulu/SuluRedirectBundle) repository.

📘 License
---------

[](#-license)

The Sulu content management system is released under the terms of the [MIT License](LICENSE).

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance59

Moderate activity, may be stable

Popularity46

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor3

3 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

Every ~170 days

Recently: every ~150 days

Total

20

Last Release

110d ago

Major Versions

0.2.2 → 1.0.02021-01-20

1.0.0 → 2.0.02021-03-23

2.2.x-dev → 3.0.0-RC12026-01-29

PHP version history (3 changes)0.1.0PHP ^5.5 || ^7.0

2.0.0PHP ^7.2 || ^8.0

3.0.0-RC1PHP ^8.2 || ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dbafb2ec00aab7a9f476cf2dd77f63923acfda214ec7bf728c662a9e88f39c7?d=identicon)[chirimoya](/maintainers/chirimoya)

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

![](https://avatars.githubusercontent.com/u/1698337?v=4)[Alexander Schranz](/maintainers/alexander-schranz)[@alexander-schranz](https://github.com/alexander-schranz)

![](https://www.gravatar.com/avatar/79a96e73697310472951fe9173230a10d1d23f6a5b8074d260d2bb848dcbb775?d=identicon)[Prokyonn](/maintainers/Prokyonn)

---

Top Contributors

[![niklasnatter](https://avatars.githubusercontent.com/u/13310795?v=4)](https://github.com/niklasnatter "niklasnatter (27 commits)")[![wachterjohannes](https://avatars.githubusercontent.com/u/1464615?v=4)](https://github.com/wachterjohannes "wachterjohannes (24 commits)")[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (16 commits)")[![Prokyonn](https://avatars.githubusercontent.com/u/25978473?v=4)](https://github.com/Prokyonn "Prokyonn (15 commits)")[![luca-rath](https://avatars.githubusercontent.com/u/5758674?v=4)](https://github.com/luca-rath "luca-rath (9 commits)")[![trickreich](https://avatars.githubusercontent.com/u/16644200?v=4)](https://github.com/trickreich "trickreich (3 commits)")[![mamazu](https://avatars.githubusercontent.com/u/14860264?v=4)](https://github.com/mamazu "mamazu (3 commits)")[![kleinkoerkamp](https://avatars.githubusercontent.com/u/176235?v=4)](https://github.com/kleinkoerkamp "kleinkoerkamp (2 commits)")[![danrot](https://avatars.githubusercontent.com/u/405874?v=4)](https://github.com/danrot "danrot (1 commits)")[![choonge](https://avatars.githubusercontent.com/u/334814?v=4)](https://github.com/choonge "choonge (1 commits)")[![Emilvooo](https://avatars.githubusercontent.com/u/1354252?v=4)](https://github.com/Emilvooo "Emilvooo (1 commits)")[![FlorianKoerner](https://avatars.githubusercontent.com/u/647303?v=4)](https://github.com/FlorianKoerner "FlorianKoerner (1 commits)")[![d3vpunk](https://avatars.githubusercontent.com/u/1311487?v=4)](https://github.com/d3vpunk "d3vpunk (1 commits)")[![TheCadien](https://avatars.githubusercontent.com/u/9395097?v=4)](https://github.com/TheCadien "TheCadien (1 commits)")

---

Tags

hacktoberfestphpsulusulu-bundleredirects

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sulu-redirect-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sulu-redirect-bundle/health.svg)](https://phpackages.com/packages/sulu-redirect-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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