Novelience Redirects
Imports, serves and exports an exact CSV redirect map after rejecting loops, duplicates, unsafe targets and cross-domain redirects.
Install in
Novelience Redirects keeps legacy URLs working after a migration or a change of site structure. Every old address receives one explicit destination, checked before the map goes live.
- Imports a CSV map from Tools > Redirects.
- Rejects malformed rows, duplicate normalized sources, user-info URLs, cross-domain redirects, self-redirects and loops before replacing anything.
- Collapses redirect chains to their final target, so visitors and search engines reach the destination in a single redirect. Chains with a query or fragment on an intermediate target are rejected.
- Replaces the map in one database transaction: a refused import leaves the active map untouched.
- Reports how many redirects were added, changed and removed by each import.
- Exports the active map as CSV, in the exact format the import accepts.
- Matches the host and path exactly at request time, with and without the
www.prefix, and revalidates every target before redirecting. - Lists and searches the active map with pagination.
- Includes a complete French translation.
The map is stored in a dedicated table of the site database. The plugin needs no external service or account.
CSV format
The file needs the columns source_url, target_url and decision. Rows are imported when decision is redirect_301; other rows are ignored. An optional reason column is kept as a note. Source URLs must not carry a query string or a fragment, and the target must stay on the same domain as the source.
source_url,target_url,decision,reason
https://example.com/old-page,https://example.com/new-page/,redirect_301,Site restructuring
Advanced edition
Redirect Map Manager, the advanced edition published by Novelience, reads the same CSV files and adds:
- an import history with the author, file checksum, note and per-row changes of every import;
- Nginx
mapand ApacheRedirectPermanentexports to serve the map from the web server; - WP-CLI commands to import, export and review the history in scripted migrations.
Switching: export the map as CSV from Tools > Redirects and import the same file into Redirect Map Manager. Both plugins can stay active meanwhile; nothing is copied automatically.
Compare the editions: the Redirect Map Manager page details the WordPress edition that this plugin compares with; its plans are listed on the same page.
Developed and maintained by Novelience.
Written by Joobi from the project's own listing. See the source page
1.2.11
- After an update without a new import, a source stored by an earlier release with lowercase percent-encoded characters keeps answering a request written the same way on databases that compare letter case (binary or case-sensitive collations), as before 1.2.10; 1.2.10 only searched the uppercase form.
- An insert refused by the database for another reason than a duplicate (storage, engine) is reported as a database error, without SQL text, instead of being described as a collision; a duplicate of the unique key is still named with its CSV line. The map is kept in both cases.
- 1.2.10 was prepared but not distributed.
1.2.10
- Two sources the database compares as one address, such as
/Product.htmland/product.html, are refused before the import with both CSV line numbers, instead of failing with “Atomic redirect map import failed.”. A row pointing to its own address in another letter case is refused as a self-redirect instead of serving an endless redirect. Two paths sharing their first 190 characters are refused with their line numbers. - Non-ASCII characters of a source path are stored percent-encoded, as browsers send them, so a source written
/cafénow answers visitors. Maps imported earlier with such sources serve them once imported again (export, then import). - The FAQ states the comparison rule of sources instead of describing the match as exact. No change to the table or settings.
1.2.9
- Added German (de_DE), Spanish (es_ES) and Italian (it_IT) translations of every message of the plugin, next to the existing French one.
- A WordPress.org language pack keeps priority for its own locale only; the bundled catalogs still serve the other locales on WordPress 6.3 to 6.7.
- The Advanced edition section explains how to switch and links to the comparison and the plans of the advanced edition on novelience.com; the same link is added to the plugin row on the Plugins screen. No data is sent and nothing is installed.
- On SQLite sites such as WordPress Playground, an import attempted while another one holds the lock no longer writes a database error to the PHP log; the attempt is still refused and the active map is unchanged.
1.2.8
- CSV imports now succeed on sites running the SQLite Database Integration, including WordPress Playground and the plugin preview: there the import lock is a row of the site options, taken atomically and released after the import, instead of a MySQL advisory lock.
- The MySQL import lock carries the database name, so sites sharing a database server and a table prefix never wait for each other’s imports.
1.2.7
- The Tools > Redirects screen loads its styles from a stylesheet enqueued on that screen only, instead of an inline style element.
1.2.6
- First public edition on WordPress.org, built from the Redirect Map Manager 1.2.6 engine: atomic CSV import, validation, chain collapsing, CSV export and French translation.
1.2.9
- Added German (de_DE), Spanish (es_ES) and Italian (it_IT) translations of every message of the plugin, next to the existing French one.
- A WordPress.org language pack keeps priority for its own locale only; the bundled catalogs still serve the other locales on WordPress 6.3 to 6.7.
- The Advanced edition section explains how to switch and links to the comparison and the plans of the advanced edition on novelience.com; the same link is added to the plugin row on the Plugins screen. No data is sent and nothing is installed.
- On SQLite sites such as WordPress Playground, an import attempted while another one holds the lock no longer writes a database error to the PHP log; the attempt is still refused and the active map is unchanged.
1.2.8
- CSV imports now succeed on sites running the SQLite Database Integration, including WordPress Playground and the plugin preview: there the import lock is a row of the site options, taken atomically and released after the import, instead of a MySQL advisory lock.
- The MySQL import lock carries the database name, so sites sharing a database server and a table prefix never wait for each other’s imports.
1.2.7
- The Tools > Redirects screen loads its styles from a stylesheet enqueued on that screen only, instead of an inline style element.
1.2.6
- First public edition on WordPress.org, built from the Redirect Map Manager 1.2.6 engine: atomic CSV import, validation, chain collapsing, CSV export and French translation.
Follow this listing's changes (Atom feed)