Redirection Endpoint
A WordPress plugin that exposes Redirection-based redirects as a publicly accessible endpoint.
by Chadsten Lowery · github.com/chadsten/wordpress-redirection-endpoint · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/chadsten/wordpress-redirection-endpoint/archive/refs/heads/master.zipA simple WordPress plugin that provides a public REST API endpoint to export Redirection plugin redirects as CSV.
Requirements
- WordPress 5.8 or higher
- PHP 7.4 or higher
- Redirection Plugin must be installed and active
Installation
- Upload the
redirection-endpointfolder to/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Ensure the Redirection plugin is installed and active
Usage
Endpoint
Access the CSV export at:
https://your-domain.com/wp-json/redirects/v1/redirects.csv
For installations without URL rewrites:
https://your-domain.com/index.php?rest_route=/redirects/v1/redirects.csv
Settings
Configure the plugin through Settings > Redirection Endpoint in WordPress admin:
- Enable/Disable Endpoint: Toggle the endpoint on or off
- Obscure Filename: Use a random filename instead of "redirects.csv" for security
- CSV Fields: Select which fields to include in the export
CSV Format
The exported CSV can include one or more of the CSV columns provided by the Redirection plugin.
Authentication
This endpoint is publicly accessible and requires no authentication.
Example Usage
cURL:
curl https://your-domain.com/wp-json/redirects/v1/redirects.csv
Security Considerations
This plugin intentionally makes redirect data publicly accessible. Ensure this aligns with your security requirements. The CSV only contains redirect mappings (URLs), not sensitive user data.
Support
For issues or questions, please open an issue on the GitHub repository.