agence-adeliom/easy-redirect-bundle
Symfony bundle to manage URL redirects and log 404 errors. Intercepts 404s, looks up matching redirects, performs redirects, and updates hit count/last accessed. Stores 404 path/URL/timestamp/referer for stats and clears matching 404s when redirects change.
Redirect and NotFound) with clear separation of concerns, fitting well into a Symfony-based architecture where database-driven redirects are needed.remove_not_founds) are configurable via YAML, allowing granular control over functionality.redirect and not_found), requiring migrations. Potential conflicts if the project already uses similar tables (e.g., custom redirect systems).path column is indexed in the redirect table.remove_not_founds feature deletes matched 404s on redirect updates. Test this behavior in staging to avoid data loss..htaccess, custom controllers).composer require agence-adeliom/easy-redirect-bundle).config/packages/easy_redirect.yaml with entity classes and model manager.doctrine:migration:diff + migrate).DashboardController with EasyRedirectTrait and update configureMenuItems().not_found table.remove_not_founds behavior (e.g., creating a redirect should delete matching 404s).redirect_class, not_found_class) for extended functionality.RedirectType form to add custom fields.Redirect class).remove_not_founds based on testing.agence-adeliom/easy-redirect-bundle and easy-common-bundle.redirect/not_found tables).path column in the redirect table is indexed. For high traffic, consider:
not_found table could grow large. Plan for:
| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Database migration fails | Redirects/404s won’t work | Test migrations in staging; use --dry-run to preview changes. |
| EasyAdmin dashboard broken | Admins can’t manage redirects | Backup existing dashboard config; test post-installation. |
| 404 logging disabled | Loss of analytics data | Monitor logging functionality; set up alerts for failed database writes. |
| Redirect loop (e.g., A→B→A) | Infinite redirects | Validate redirect paths in the admin form; add cycle detection. |
| High traffic causes slowdowns | Degraded performance | Implement caching; optimize database queries. |
| Bundle conflicts with other packages | Broken functionality | Isolate bundle in a test environment; check for overlapping dependencies. |
remove_not_founds).How can I help you explore Laravel packages today?