🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Rewrite Rules Inspector icon
Actively maintained Tested with WP 7.1 #1 in rewrite rules

Rewrite Rules Inspector

A simple admin tool for inspecting rewrite rules.

Active installs10K+10K+ tier
Downloads · 30d17.3K▲ +91.2% vs prev. 30d
Rating5/526 reviews
Health score90/100Excellent
All-time downloads518.1KSince May 2012
Support resolved—No recent threads
RequiresWP 6.4PHP 7.4+
Downloads · 7d3.1K▲ +5.1% week over week
Our verdict

Safe pick

Yes — Rewrite Rules Inspector is a safe, well-maintained plugin to use in 2026. It runs on 10K+ sites, is rated 5/5 and was last updated 4 weeks ago, and scores 90/100 on our health check.

  • Proven at scale on 10K+ active sites
  • Loved by users — 5/5 from 26 reviews
  • Actively developed — last update 4 weeks ago
  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 91.2% vs the previous 30 days

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

8211.6K2.5KSep 5Oct 19Dec 3
Yesterday505
Daily average (1y)234
Peak day3,286Nov 9, 2026
Last 12 months85.1K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Rewrite Rules Inspector stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
rewrite rules #1 2,139 Best rewrite rules plugins →
tools #75 10,000 Best tools plugins →

Version adoption

Share of active sites per release.

  • 1.659.5%
  • 1.313.2%
  • 1.212.7%
  • 1.411.6%
  • 1.53.0%

Rating breakdown

★★★★★★★★★★ 5 from 26 reviews

  • 5★96.2%
  • 4★3.8%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Rewrite Rules Inspector

From the official readme · v1.6.1

Description

A simple WordPress admin tool for inspecting rewrite rules. View a listing of all your rewrite rules, see which rewrite rules match a given URL (and the priorities they match in), or filter by different sources of rewrite rules. Perform a soft flush of your rewrite rules to regenerate them.

Developed on GitHub — pull requests are always welcome. Please leave feedback, questions, bug reports, and feature requests in the GitHub issues.

Where to find it

Go to Tools → Rewrite Rules in the WordPress admin.

URL Tester

Quickly test any URL (or path) against your site’s rewrite rules:

  • See whether the URL would be a 404 or which rule would match first (the one WordPress uses).
  • View the list of all matching rules, in match priority order.
  • Inspect the query variables extracted from the match and the resulting final query WordPress would run.

Works with full URLs or paths and automatically handles sites installed in a subdirectory.

Permastructs

Browse a table of all permastructs that WordPress is aware of, including:

  • Name — the permastruct key (e.g. for posts, taxonomies, authors).
  • Structure — the permalink structure pattern used to generate rules.
  • Description — a human-friendly summary of what the permastruct controls.

Flush Rules

The “Flush Rules” button allows you to regenerate your site’s rewrite rules. Here’s exactly what happens when you click it:

What the Flush Rules Button Does

When you click the “Flush Rules” button, the following sequence occurs:

  1. Security Check: The system verifies you have the proper permissions (manage_options capability) and validates the security nonce to prevent unauthorized access.

  2. Cache Clearing: WordPress deletes the cached rewrite rules from the options cache using wp_cache_delete('rewrite_rules', 'options').

  3. Rule Regeneration: WordPress calls flush_rewrite_rules(false) to regenerate all rewrite rules based on:

    • Current permalink structure settings
    • Custom post types and taxonomies
    • Any custom rewrite rules added by themes or plugins
  4. Hook Execution: The rri_flush_rules action hook is fired, allowing other plugins to perform additional cleanup or actions after the flush.

  5. Success Feedback: You’re redirected back to the Rewrite Rules Inspector page with a success message confirming the rules have been flushed.

When to Use Flush Rules

Use the “Flush Rules” button when:

  • Missing Rules: You see rules marked as “missing” (red background) in the inspector
  • Custom URLs Not Working: Your custom permalinks or post type URLs aren’t working properly
  • After Plugin Changes: You’ve activated/deactivated plugins that register custom rewrite rules
  • Permalink Structure Changes: You’ve modified your site’s permalink structure
  • Custom Post Type Issues: New custom post types or taxonomies aren’t generating proper URLs

Important Notes

  • Soft Flush: This performs a “soft” flush (using flush_rewrite_rules(false)), which is safer than a hard flush as it doesn’t force regeneration of all rules unnecessarily.
  • Permissions Required: Only users with manage_options capability can flush rules.
  • No Data Loss: Flushing rules doesn’t delete any content or settings, it only regenerates the URL routing rules.
  • Immediate Effect: Changes take effect immediately after flushing.

Installation

Install the plugin from within WordPress

  1. Visit the Plugins page from your WordPress dashboard and click “Add New” at the top of the page.
  2. Search for “rewrite-rules-inspector” using the search bar on the right side.
  3. Click “Install Now” to install the plugin.
  4. After it’s installed, click “Activate” to activate the plugin on your site.

Install the plugin manually

  1. Download the plugin from WordPress.org or get the latest release from our GitHub Releases page.
  2. Unzip the downloaded archive.
  3. Upload the entire rewrite-rules-inspector folder to your /wp-content/plugins directory.
  4. Visit the Plugins page from your WordPress dashboard and look for the newly installed plugin.
  5. Click “Activate” to activate the plugin on your site.

Changelog

Security and bug fix release. Rule downloads now check permissions before doing any work, and URL searches match the path WordPress actually routes, including on sites installed in a subdirectory.

The highlights of recent releases are below. Every change, including older releases, is listed in CHANGELOG.md.

1.6.1

  • Security: Rule downloads now check permissions before doing any work, and the plugin’s files no longer cause errors when requested directly.
  • Fixed: Searching for a URL on a site installed in a subdirectory now tests the right path.
  • Fixed: The rules list and the URL test result now agree on which rules a URL matches.
  • Changed: The inspector page generates the rewrite rules once instead of twice, so it loads faster.

Full changelog on WordPress.org →

Screenshots

See all of the rewrite rules and flush them or download them.
See all of the rewrite rules and flush them or download them.
Test a URL against the rules to see which one(s) would match, and the priority they would match in.
Test a URL against the rules to see which one(s) would match, and the priority they would…
Limit rules and URL testing results down to specific rule sources.
Limit rules and URL testing results down to specific rule sources.
See which permastructs WordPress knows about.
See which permastructs WordPress knows about.

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.

Active installs badge Rating badge Health score badge

Best Rewrite Rules Inspector alternatives

All rewrite rules plugins →

FAQ

Rewrite Rules Inspector: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Rewrite Rules Inspector free?

Yes. Rewrite Rules Inspector is free to download and use from the official WordPress.org plugin directory.

Is Rewrite Rules Inspector safe to use in 2026?

Yes — Rewrite Rules Inspector is a safe, well-maintained plugin to use in 2026. It runs on 10K+ sites, is rated 5/5 and was last updated 4 weeks ago, and scores 90/100 on our health check.

How many websites use Rewrite Rules Inspector?

Rewrite Rules Inspector is active on 10K+ WordPress websites and has been downloaded 518,102 times since it launched in May 2012. It was downloaded 17,336 times in the last 30 days.

Does Rewrite Rules Inspector work with WordPress 7.1?

Yes. The developer has tested Rewrite Rules Inspector up to WordPress 7.1.5, the latest release. It requires WordPress 6.4 or newer.

What PHP version does Rewrite Rules Inspector need?

Rewrite Rules Inspector requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Rewrite Rules Inspector last updated?

The latest version, 1.6.1, was released on November 8, 2026 (4 weeks ago).

Who makes Rewrite Rules Inspector?

Rewrite Rules Inspector is developed and maintained by Automattic.

What are the best alternatives to Rewrite Rules Inspector?

The most popular alternatives to Rewrite Rules Inspector are Debug Bar Rewrite Rules (600+ installs), WP Permastructure (400+ installs) and Rewrite Rule Testing (300+ 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

↑↓ to move↵ to open