tentapress/redirects 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tentapress/redirects

最新稳定版本:v0.3.4

Composer 安装命令:

composer require tentapress/redirects

包简介

README 文档

README

First-party redirect management for TentaPress.

Plugin Details

Field Value
ID tentapress/redirects
Version 0.3.3
Provider TentaPress\Redirects\RedirectsServiceProvider

Goal

Provide safe, operator-managed redirect governance so slug changes and migrations do not break public URLs.

Features

  • Manual redirect CRUD in admin (/admin/redirects)
  • Bulk enable/disable actions from redirect index
  • Runtime web middleware for active 301/302 redirects
  • Conflict checks against owned static routes
  • Loop prevention checks for self/chained redirects
  • Slug-change auto redirect generation for pages and posts
  • In-form diagnostics preview endpoint for collision/loop checks
  • Import mapping report ingestion command for migration redirects
  • Redirect lifecycle audit event records
  • Policy toggle for auto-applying slug-change redirects
  • Suggestion queue with approve/reject workflow
  • Import conflict staging into pending suggestions

Admin Menu

Label Route Capability Parent
Redirects tp.redirects.index manage_seo Settings

Commands

php artisan tp:redirects:import-mappings storage/app/tp-import-reports/<token>.json

Development

php artisan tp:plugins sync
php artisan tp:plugins enable tentapress/redirects
composer test:filter -- Redirects

Rollout Checklist

  1. Run php artisan tp:plugins sync.
  2. Enable plugin: php artisan tp:plugins enable tentapress/redirects.
  3. Run migrations: php artisan migrate.
  4. Validate admin routes:
    • /admin/redirects
    • /admin/redirects/suggestions
    • /admin/redirects/settings
  5. Validate runtime redirects with sample 301 and 302 records.
  6. Run regression tests: composer test:filter -- Redirects.

Rollback Guidance

  1. Disable plugin: php artisan tp:plugins disable tentapress/redirects --force.
  2. Confirm redirect middleware no longer applies (/legacy-url should no longer redirect).
  3. If needed, restore previous database backup for tp_redirects, tp_redirect_events, and tp_redirect_suggestions.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固