Rewrite Rules Inspector

説明

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.

スクリーンショット

  • 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.

  • Limit rules and URL testing results down to specificrule sources.

  • See which permastructs WordPress knows about.

インストール

WordPress 内からプラグインをインストールする

  1. WordPress ダッシュボードの「プラグイン」ページにアクセスし、ページ上部の「新規追加」をクリックします。
  2. 右側の検索バーを使用して「rewrite-rules-inspector」を検索します。
  3. 「今すぐインストール」をクリックしてプラグインをインストールします。
  4. インストール後、「有効化」をクリックしてプラグインを有効にします。

手動でプラグインをインストールする

  1. Download the plugin from WordPress.org or get the latest release from our GitHub Releases page.
  2. ダウンロードしたファイルを解凍します。
  3. rewrite-rules-inspector ディレクトリを /wp-content/plugins にアップロードします。
  4. WordPress ダッシュボードの「プラグイン」ページにアクセスし、新しくインストールしたプラグインを探します。
  5. 「アクティベート」をクリックしてサイトのプラグインを有効にします。

評価

2021年11月7日
Whenever you change a custom post type, you must flush the rewrite rules. This plugin does in in a single click. Additionally it enables you to check your rewrite rules against your URLs to make sure everything is working as it should. This is one of my essential plugins.
2018年3月25日
Love the plugin but noticed today, whilst debugging a new plugin I’m writting, that the plugin still uses the depreciated functions: screen_icon() and get_screen_icon(). Both have gone depreciated since 3.8.0 so I reckon a minor update to avoid these errors from popping up in the debug mode is worth the effort 🙂 The fix – with backwards compatibility (do we need that?) – would be to change: <?php screen_icon( 'tools' ); ?> into: <?php if ( function_exists('screen_icon') ) screen_icon( 'tools' ); ?> ___ (!) Notice: screen_icon is deprecated since version 3.8.0 with no alternative available. (!) Notice: get_screen_icon is deprecated since version 3.8.0 with no alternative available. Location ..\rewrite-rules-inspector.php:208
25件のレビューをすべて表示

貢献者と開発者

Rewrite Rules Inspector はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Rewrite Rules Inspector” は5ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Rewrite Rules Inspector” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

変更履歴をご覧ください。