Developed with love by KnpLabs Hire us for your project!
23

SuluRedirectBundle

by sulu

Sulu bundle for managing redirects

SuluRedirectBundle

Build Status
Scrutinizer Code Quality
Code Coverage
StyleCI

The SuluRedirectBundle adds support for managing redirects in Sulu.

Additional features included:

  • Content-Manager can create new redirect-routes in Sulu-Admin
  • Import redirect-routes from csv

Status

This repository will become version 1.0 of SuluRedirectBundle. It is under heavy development and currently its APIs
and code are not stable yet (pre 1.0).

Requirements

  • Composer
  • PHP ^5.5 || ^7.0
  • Sulu ^1.5

For detailed requirements see composer.json.

Documentation

The the Documentation is stored in the
Resources/doc/ folder.

Installation

All the installation instructions are located in the
Documentation.

License

This bundle is under the MIT license. See the complete license in the bundle

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project using the
Sulu Minimal Edition to allow developers of the bundle to reproduce the issue
by simply cloning it and following some steps.

The MIT License (MIT)

Copyright (c) 2016 Sulu

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
sulu_redirect:

# When enabled, this feature automatically creates redirects with http status code 410 when a document with route or an route entity is removed.
gone_on_remove:
enabled: true
imports:
path: %kernel.root_dir%/../var/uploads/redirects
objects:
redirect_route:
model: Sulu\Bundle\RedirectBundle\Entity\RedirectRoute
repository: Sulu\Bundle\RedirectBundle\Entity\RedirectRouteRepository