skillfed

sphinxext-rediraffe

Sphinx Extension that redirects non-existent pages to working pages

sphinxext-rediraffe v0.3.0 257.1K downloads/30d#8,449 on PyPI39
Permissive license MIT AGING released

What it is and what it does

Sphinxext-rediraffe is a Sphinx extension that handles documentation page redirects—when a page is deleted or renamed, it automatically redirects users to the correct location. Instead of letting broken links accumulate, you define a mapping of old page paths to new ones, and the extension ensures that any request for an old page lands on the current version. The extension also resolves redirect chains: if page A redirects to page B and page B redirects to page C, all requests go directly to page C, so users experience only one redirect rather than multiple hops.

The extension works with Sphinx's html and dirhtml builders and can optionally check your git repository to verify that deleted or renamed files have corresponding redirects defined. It's a lightweight addition to your Sphinx setup—it only depends on Sphinx itself—and supports Python 3.9 through 3.13. The project is marked Production/Stable and has been maintained since 2020, though releases have slowed recently.

Use it for:

  • Redirect old documentation URLs after a site restructure to prevent broken links and preserve search rankings.
  • Automatically handle renamed pages during documentation refactoring without breaking external links.
  • Verify that all deleted documentation pages have redirect rules defined in your build process.
  • Simplify user experience by eliminating redirect chains when documentation undergoes multiple reorganizations.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Sphinx extension that automatically redirects requests for non-existent or renamed documentation pages to their current locations, resolving chains of redirects transparently.

Yes, if you maintain Sphinx documentation and need to handle page renames or deletions gracefully. The low install friction, permissive license, and stable status make it a straightforward addition. The aging maintenance signal (320 days since last release) is a minor concern but not a blocker—the repository is active and the extension's scope is narrow and stable. No known vulnerabilities.

Install

sphinxext-rediraffe on PyPI

pip

pip install sphinxext-rediraffe

uv

uv add sphinxext-rediraffe

poetry

poetry add sphinxext-rediraffe

Installing sphinxext-rediraffe

Before you install

Low friction: pure Python wheel with only Sphinx as a runtime dependency. Maintenance signal is aging—last release was 320 days ago—but the repository remains active and not archived, with recent commits as of 2025-09-28.

License in practice

MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you retain the license notice.

Quickstart

pip install sphinxext-rediraffe

# In conf.py:
extensions = ['sphinxext.rediraffe']
rediraffe_redirects = {
    'old_page': 'new_page',
}

Requires Sphinx and Python 3.9 or later; only works with html and dirhtml builders.

Verify before relying

  • How redirect chains are configured and whether the graph traversal is automatic or requires explicit setup.
  • Whether the git repo check for deleted/renamed files is a separate command or integrated into the build process.
  • Performance impact when handling large numbers of redirects.
  • Whether broken external links are prevented or just handled after the fact.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 1 — Sphinx
Maintenance aging — 320 days since the last release
Last repo commit
First released
Downloads 257,139/month — #8,449 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sphinxext_rediraffe-0.3.0-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: PluginsEnvironment :: Web EnvironmentFramework :: Sphinx :: ExtensionIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: DocumentationTopic :: Documentation :: SphinxTopic :: Software Development :: DocumentationTopic :: Text ProcessingTopic :: Utilities

Tags

sphinx redirect pagesdocumentation page redirectssphinx broken link handlingrenamed documentation filessphinx url redirection
sphinx-extensiondocumentation-tooling

More Utilities packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

charset-normalizer

Detects and normalizes text encoding from…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

Pygments

Pygments is a syntax highlighter that colorizes…

permissive · top 100 on PyPI

six

Six provides utility functions to write Python…

permissive · top 100 on PyPI

sphinx-reredirects

Sphinx extension that generates HTML redirect…

unclear · top 5,000 on PyPI

mkdocs-redirects

A MkDocs plugin that generates HTTP redirects…

permissive · top 5,000 on PyPI

sphinx-remove-toctrees

A Sphinx extension that selectively removes…

permissive · top 15,000 on PyPI

sphinx-last-updated-by-git

A Sphinx extension that automatically extracts…

permissive · top 15,000 on PyPI

sphinxext-opengraph

Sphinx extension that automatically generates…

permissive · top 15,000 on PyPI

sphinx-notfound-page

A Sphinx extension that generates a custom 404…

permissive · top 5,000 on PyPI

sphinx-needs

Sphinx-Needs is a Sphinx extension that lets…

permissive · top 15,000 on PyPI

sphinx-llm

Sphinx extensions that generate LLM-consumable…

permissive · top 15,000 on PyPI

sphinx-issues

A Sphinx extension that adds roles for linking…

permissive · top 15,000 on PyPI

sphinx-automodapi

Sphinx extension that automatically generates…

permissive · top 15,000 on PyPI