skillfed

sphinx-reredirects

The extension for Sphinx documentation projects that handle redirects for moved pages. It generates HTML pages with meta refresh redirects to the new page location to prevent 404 errors if you rename or move your documents.

sphinx-reredirects v1.1.0 894.0K downloads/30d#4,794 on PyPI16
License unclear Active released

What it is and what it does

sphinx-reredirects is a Sphinx extension that automates the creation of redirect pages when you rename or move documentation files. Instead of leaving broken links, it generates lightweight HTML files with meta refresh tags that send visitors to the new location—all configured from a single place in your project's conf.py file. It requires no server-side setup, works across domains, and supports wildcard patterns for bulk redirects.

The extension solves the common problem of maintaining documentation URLs as your site evolves. When you rename a page from `start.html` to `intro.html`, sphinx-reredirects generates a `start.html` that automatically redirects browsers to the new location. This keeps search engine rankings intact and prevents 404 errors for bookmarked or externally linked pages.

Use it for:

  • Rename documentation pages without breaking external links or search engine indexing
  • Move entire documentation sections to new locations with wildcard redirect rules
  • Migrate a documentation site to a different domain while preserving old URLs
  • Maintain backward compatibility when reorganizing a large documentation structure
  • Centralize all redirect logic in conf.py instead of managing .htaccess or server config

Worth the install?

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

Sphinx extension that generates HTML redirect pages with meta refresh tags when you rename or move documentation files, preventing 404 errors without server-side configuration.

Yes, if you maintain a Sphinx documentation site and need to handle URL changes. The extension is actively maintained, has low install friction, and solves a real problem with minimal configuration. The only caveat is that license metadata is unclear—verify the MIT claim before use in contexts where license certainty matters.

Install

sphinx-reredirects on PyPI

pip

pip install sphinx-reredirects

uv

uv add sphinx-reredirects

poetry

poetry add sphinx-reredirects

Installing sphinx-reredirects

Before you install

Low friction install as a pure Python wheel with only Sphinx as a runtime dependency. Actively maintained with recent releases; last commit 2026-02-27 and latest release 2025-12-22.

License in practice

License treatment is unclear in the package metadata, though the description references MIT licensing. Verify the actual license terms before use in proprietary or restricted contexts.

Quickstart

pip install sphinx-reredirects

# In conf.py:
extensions = ['sphinx_reredirects']
redirects = {
    'old_page': 'new_page.html',
    'docs/old/*': 'docs/new/',
}

Requires Python 3.11 or later and Sphinx as a dependency; client-side redirects require JavaScript enabled in browsers.

Verify before relying

  • Whether the MIT license claim in the description is authoritative or whether metadata omission indicates a different license
  • Wildcard matching and cross-domain redirect behavior details beyond the description's summary
  • Whether dynamic placeholders support variable substitution or simple string replacement

Package facts

License not declared (unclear)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 1 — sphinx
Maintenance actively maintained — 235 days since the last release
Last repo commit
First released
Downloads 894,004/month — #4,794 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sphinx_reredirects-1.1.0-py3-none-any.whl

Framework :: SphinxFramework :: Sphinx :: ExtensionIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: DocumentationTopic :: Documentation :: SphinxTopic :: Software Development :: DocumentationTopic :: Utilities

Tags

sphinx documentation redirectshandle moved pages sphinxmeta refresh redirectssphinx 404 preventiondocument rename managementsphinx url migrationclient-side redirects sphinx
sphinx-extensionurl-managementdocumentation-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-notfound-page

A Sphinx extension that generates a custom 404…

permissive · top 5,000 on PyPI

sphinxcontrib-googleanalytics

Adds Google Analytics tracking to…

permissive · top 15,000 on PyPI

sphinxext-rediraffe

A Sphinx extension that automatically redirects…

permissive · top 15,000 on PyPI

bidict

Provides a bidirectional dictionary (bidict)…

copyleft · top 1,000 on PyPI

mkdocs-redirects

A MkDocs plugin that generates HTTP redirects…

permissive · top 5,000 on PyPI

sphinx-favicon

A Sphinx extension that injects custom favicon…

permissive · top 15,000 on PyPI

sphinx-last-updated-by-git

A Sphinx extension that automatically extracts…

permissive · top 15,000 on PyPI

sphinx-remove-toctrees

A Sphinx extension that selectively removes…

permissive · top 15,000 on PyPI

sphinxext-opengraph

Sphinx extension that automatically generates…

permissive · top 15,000 on PyPI

sphinx-hoverxref

Sphinx extension that displays tooltips with…

permissive · top 15,000 on PyPI