Rewrite Rules Inspector
A simple admin tool for inspecting rewrite rules.
Choix
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.
- Prouvé à grande échelle sur plus de 10 000 sites actifs
- Loved by users — 5/5 from 26 reviews
- Développé activement — Dernière mise à jour il y a 4 semaines
- Testé avec le dernier WordPress (7.1)
- Momentum — downloads up 91.2% vs the previous 30 days
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Rewrite Rules Inspector stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| rewrite rules | #1 |
| tools | #75 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★★★★★★ 5 from 26 reviews
About Rewrite Rules Inspector
À partir du Lisezmoi officiel · v1.6.1Description
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:
-
Security Check: The system verifies you have the proper permissions (
manage_optionscapability) and validates the security nonce to prevent unauthorized access. -
Cache Clearing: WordPress deletes the cached rewrite rules from the options cache using
wp_cache_delete('rewrite_rules', 'options'). -
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
-
Hook Execution: The
rri_flush_rulesaction hook is fired, allowing other plugins to perform additional cleanup or actions after the flush. -
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
Notes importantes
- 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_optionscapability 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
- Visit the Plugins page from your WordPress dashboard and click “Add New” at the top of the page.
- Search for “rewrite-rules-inspector” using the search bar on the right side.
- Click “Install Now” to install the plugin.
- After it’s installed, click “Activate” to activate the plugin on your site.
Install the plugin manually
- Download the plugin from WordPress.org or get the latest release from our GitHub Releases page.
- Unzip the downloaded archive.
- Upload the entire
rewrite-rules-inspectorfolder to your/wp-content/pluginsdirectory. - Visit the Plugins page from your WordPress dashboard and look for the newly installed plugin.
- Click “Activate” to activate the plugin on your site.
Journal de modifications
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.
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Rewrite Rules Inspector alternatives
All rewrite rules plugins →FAQ
Rewrite Rules Inspector: quick answers
Réponses directes, extraites des données en direct WordPress.org.
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).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit




