sphinxext-rediraffe is a Sphinx extension that generates HTTP redirects (via HTML meta refresh tags) for non-existent pages, pointing them to specified working pages. This is useful for maintaining SEO and user experience when restructuring documentation. It is currently at version 0.3.0 and typically releases updates as needed for bug fixes, compatibility with new Sphinx versions, or minor features.
pip install sphinxext-rediraffeVerified import paths — ran on the pinned version, not inferred.
To quickly set up `sphinxext-rediraffe`, first add it to your `extensions` list in `conf.py`. Then, configure the `rediraffe_redirects` setting, either by pointing it to a text file (e.g., `redirects.txt`) where each line specifies an old path followed by a new path, or by providing a dictionary directly in `conf.py`.
Ensure `extensions = ['sphinxext.rediraffe', ...]` is present in your `conf.py`.
Set `rediraffe_redirects` in `conf.py` to a string (path to file) or a dictionary mapping old to new paths.
Review your `redirects.txt` file or `rediraffe_redirects` dictionary to ensure paths are relative, use forward slashes, and correctly target HTML output files.
Verify the path provided in `rediraffe_redirects` in `conf.py` and confirm the file is present at that location.