YouNeed.dev — home
Yavor ZagorskiSenior Full-Stack Developer
CV Let’s build

WordPress / URL Management

Public Repository

VTX Redirect

Predictable redirects, managed inside WordPress.

A custom WordPress plugin for exact-path redirect rules, bulk editing and content-usage inspection, with validation for duplicate sources and internal redirect cycles.

Yavor ZagorskiPlugin design, request-handling architecture, administration UX and implementation
VTX Redirect rules workspace with source, target and enabled status
Authentic WordPress administration capture with a generic example redirect rule.

Project overview

VTX Redirect provides a focused administration surface for changing URL routes without editing server configuration. It is custom WordPress software built around explicit matching and destination rules.

The business challenge

Content migrations and URL changes can strand existing links. A redirect manager must be understandable to an administrator while preventing ambiguous rules, accidental loops and uncontrolled external destinations.

The product solution

Administrators manage exact normalized paths, enable or pause rules and edit them through a drawer or bulk text workflow. Validation occurs before persistence, and runtime handling follows WordPress redirect conventions.

Ownership & boundaries

My role

Plugin design, request-handling architecture, administration UX and implementation

  • Design predictable normalization and redirect matching behavior.
  • Build the rules workspace, edit drawer and bulk text workflows.
  • Implement graph validation, destination boundaries and WordPress permission checks.
  • Document supported behaviors, limitations and maintenance procedures.

System design

Technical architecture

Request → normalized path → validated rule → destinationRules persist through the WordPress Options API. Matching is exact; configured external hosts are explicitly admitted through the WordPress redirect boundary.
  1. 01

    Incoming request

    The plugin participates in WordPress template_redirect.

  2. 02

    Path normalization

    A normalizer derives the exact canonical source path.

  3. 03

    Enabled rule map

    The repository loads validated active rules from WordPress options.

  4. 04

    Destination resolution

    The runtime resolves internal or configured external targets and optional query preservation.

  5. 05

    Safe redirect

    wp_safe_redirect applies the chosen 301, 302, 307 or 308 status with a runtime self-redirect guard.

Verified relationships

  • template_redirect → normalized request path → enabled rule map
  • Administrator save → duplicate and cycle validation → WordPress options
  • Matched rule → destination and optional query → wp_safe_redirect
  • Configured external host → WordPress allowed-host boundary
Runtime
PHP · WordPress hooks · WordPress Options API · wp_safe_redirect
Administration
JavaScript · CSS · WordPress admin
Development
Composer · PHP_CodeSniffer · WordPress Coding Standards

Implemented redirect management

Explicit status and destination

Rules support 301, 302, 307 and 308, with internal or deliberately configured external destinations.

Validation and query behavior

Duplicate sources and enabled internal graph cycles are checked. Incoming query values can be preserved when a destination provides no query.

Administration workflows

Status filtering, enable/pause controls, bulk import/edit/export and a focused rule editor support routine maintenance.

Content usage and activity

A scanner checks post content, excerpts and titles. The activity log records administrative changes; it is not visitor redirect analytics.

A small interface for a sensitive operation

The rule workspace keeps source, destination, status and enabled state together. An editor can inspect a single change or use a text workflow for multiple rules without needing a separate command-line tool.

HTTP status selection distinguishes permanent and temporary behavior. The portfolio makes no claim that installing the plugin improves search rankings.

Engineering decisions

Migration rules can create redirect cycles

Validate enabled internal rule graph before persistence and guard self-redirects at runtime.

External destination support must remain deliberate

Only hosts from enabled administrator-configured rules enter the WordPress allowed-host filter.

URL normalization must be predictable

Exact normalized paths and explicitly defined query preservation instead of implicit regex/wildcard behavior.

A deterministic WordPress tool

Request matching and redirect decisions are conventional PHP and WordPress logic. The plugin does not contain an AI runtime. It illustrates the established platform-engineering work that supports a broader AI-native development practice.

Validation and verification boundaries

Write and AJAX actions require manage_options capability and nonces. Paths and destinations are normalized, input is sanitized, and output is escaped. The plugin adds no telemetry or external runtime service.

PHP lint and WordPress coding-standard tooling are configured. The repository test directory is reserved; it is not evidence of an implemented unit or integration suite. That limitation is kept explicit rather than implied away.

Current product status

Public Repository

Public GPL-2.0-or-later repository, version 2.1.1. A WordPress.org listing is not verified. Regex rules, 404 monitoring and visitor analytics are not claimed. Existing authentic administration captures demonstrate the implemented rule workflows.

Continue the conversation

Understand the work.
Meet the engineer.