Rewrite Rule Testing
This plugin provides a simple interface for testing your custom rewrite rules.
Consider an alternative
Rewrite Rule Testing shows warning signs in 2026 — compare the alternatives below before installing. It runs on 300+ sites, is rated 5/5 and was last updated 13 years ago, and scores 33/100 on our health check.
- Momentum — downloads up 93% vs the previous 30 days
- Small user base (300+ active installs)
- Very few reviews so far
- No update in 12 years
- Only tested up to WordPress 3.9 (latest is 7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Rewrite Rule Testing stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| permalinks | >100 |
| rewrite rules | >100 |
| testing | >100 |
| tests | >100 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 2 reviews
About Rewrite Rule Testing
From the official readme · v0.1.1Description
This plugin provides a simple interface for testing your custom rewrite rules.
The purpose of this plugin is to be able to test your own rewrite rules, so
you’re probably most interested in knowing how to do that, right? The plugin
provides a filter, rewrite_testing_tests to add your own tests. That filter
passes an associative array of name => tests. The tests array is an associative
array of URI => expected match. In the outer array, the “name” is arbitrary and
for your own reference. In the inner array, the “URI” is the path you want to
test, and the “expected match” is what WordPress should find as a rewrite
match.
Enough chit-chat, here’s an example:
function my_rewrite_tests( $tests ) {
return array(
'Events' => array(
'/event/super-bowl/' => 'index.php?event=$matches[1]',
'/event/super-bowl/page/2/' => 'index.php?event=$matches[1]&paged=$matches[2]'
)
);
}
add_filter( 'rewrite_testing_tests', 'my_rewrite_tests' );
You can see the test_cases() method for a full suite of tests for the “Day
and Name” permalink structure. It’s not necessary to leave these in (in fact,
the above demo would wipe them out), unless you want to make sure that your
custom rewrites aren’t affecting core rewrites. If you aren’t using “Day and
Name” permalinks, you’ll need to adjust the tests to fit your permalink
structure.
Todo
- Add a debug bar extension which reads a transient; the transient would be
updated whenever rewrite rules are flushed. The debug bar extension would
show pass/fail status and link directly to the settings page. - Add tests for other permalink structures?
- Add a way to run this as part of phpunit
Installation
- Upload to the /wp-content/plugins/ directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Tools → Rewrite Testing
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Rewrite Rule Testing alternatives
All permalinks plugins →FAQ
Rewrite Rule Testing: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Rewrite Rule Testing free?
Yes. Rewrite Rule Testing is free to download and use from the official WordPress.org plugin directory.
Is Rewrite Rule Testing safe to use in 2026?
Rewrite Rule Testing shows warning signs in 2026 — compare the alternatives below before installing. It runs on 300+ sites, is rated 5/5 and was last updated 13 years ago, and scores 33/100 on our health check.
How many websites use Rewrite Rule Testing?
Rewrite Rule Testing is active on 300+ WordPress websites and has been downloaded 37,713 times since it launched in May 2014. It was downloaded 2,538 times in the last 30 days.
Does Rewrite Rule Testing work with WordPress 7.1?
Rewrite Rule Testing is officially tested up to WordPress 3.9.40, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Rewrite Rule Testing last updated?
The latest version, 0.1.1, was released on May 20, 2014 (13 years ago).
Who makes Rewrite Rule Testing?
Rewrite Rule Testing is developed and maintained by Matthew Boynes.
What are the best alternatives to Rewrite Rule Testing?
The most popular alternatives to Rewrite Rule Testing are Nginx Helper (200K+ installs), Permalink Manager Lite (100K+ installs) and Remove Category URL (40K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card


