Skip to main content

Project hero image

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.

The sphinx-reredirects started from the urge to manage redirects for all documents after moving our Tech writer at work blog to the new address at https://documatt.com/blog/.

Prevents 404 errors · Wildcard matching · Dynamic placeholders
Cross-domain redirects · Centralized configuration in conf.py
Easy to use · Works seamlessly with Sphinx
📚 Documentation · 📟 Source code

GitHub Repo stars GitHub tests PyPI version PyPI - Python Version MIT licence Nox

Good URLs are never changing URLs. But if you must, sphinx-reredirects helps you manage redirects with ease and from a single place in the project's conf.py.

For example, if you rename document start to intro, and tell it to sphinx-reredirects, it will generate the HTML page start.html with client-side redirect (requires no server-side configuration).

The extension supports wildcards and moving to different domains, too.

Terminal showing cat images.html ( content of generated redirect HTML file)

Community

Connect with other fellows who are building with Sphinx. Share knowledge, get help, and contribute to the open-source project. Check out our Documatt Community page to see featured material and upcoming events.

Join our community here:

sphinx-reredirects is MIT licensed.

Icon "route-alt-right" by TabletIcons.

Release files for sphinx-reredirects 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-reredirects 1.1.0
File Size Uploaded
sphinx_reredirects-1.1.0.tar.gz 614.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-reredirects 1.1.0
File Interpreter ABI Platform
sphinx_reredirects-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 621.0 kB

Release files / sphinx_reredirects-1.1.0.tar.gz

Download URL sphinx_reredirects-1.1.0.tar.gz
Size 614.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fb9b195335ab14b43f8273287d0c7eeb637ba6c56c66581c11b47202f6718b29
BLAKE2b-256 checksum
How to use checksums
1b8d0e39fe2740d7d71417edf9a6424aa80ca2c27c17fc21282cdc39f90d5a40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / sphinx_reredirects-1.1.0-py3-none-any.whl

Download URL sphinx_reredirects-1.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b5692273c72cd2d4d917f4c6f87d5919e4d6114a752d4be033f7f5f6310efd9
BLAKE2b-256 checksum
How to use checksums
5181b5dd07067f3daac6d23687ec737b2d593740671ebcd145830c8f92d381c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page