這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Monkeyman Rewrite Analyzer

描述

This is a tool to understand your rewrite rules (“Pretty Permalinks”). It is indispensable if you are adding or modifying rules and want to understand how they work (or why they don’t work).

It is only an analyzer, it does not change any rules for you. It parses the rules down to their components and shows the connection with the resulting query variables. It allows you to try out different URLs to see which rules will match and what the value of the different query variables will be (see screenshots).

This plugin was written as a tool to help answering questions about rewrite rules on the WordPress Stack Exchange.

螢幕截圖

  • Display all rewrite rules and highlight captured URL parts and ignored query variables
  • Test URLs and see matching rules with the resulting query variables

安裝

Install via the normal way: either by uploading the unzipped file to your plugin directory, or directly via the plugin installer.

An extra item will be added to the “Tools” menu, visible if you are an administrator.

常見問題

My new rules aren’t displayed!

Did you flush the rules? You can do this in your code, or by visiting the “Permalinks” settings page.

Can you help me with my rewrite rules?

Maybe. I’m active on the WordPress Stack Exchange, where you can find many intelligent and friendly WordPress experts willing to answer your questions.

評價

2022年1月17日
This plugin is really useful for specific needs. But unfortunately not maintained anymore... =/ If someone need and update version of this check this out : https://wordpress.org/plugin/url-rewrite-analyzer Features: - Nice and clean interface - Remove all PHP warning / notices - Update code structure - Compatible with latest WP Version - Light / Old / Dark UI
2020年6月29日
Still an incredibly useful plugin after all these years. Confirming it works on 5.4.2 with blocks enabled also! I needed it to help make sense of some complex rewrites critical to our AWS load balancer distribution, this plugin was integral in my troubleshooting. It also helped me identify ways to simplify and get rid of superfluous rules being added from all over (manual rules, Redirection, other plugins etc). I'd like to see the owner update this so more people will know it's safe to use. Or if it's abandoned, someone take it over! This is a great developer resource that's probably being overlooked.
2020年1月17日
Very easy to use. Although supposedly not tested under 5.3.2, it works flawlessly under it. A must-have for any WordPress developer
2019年5月30日
Helped me sort some issues with the rewrite rules when developing a plugin. Works fine with WordPress 5.2 and does what you need it too.
2019年2月4日
Confirmed to still work 8 years later in 2019! - WordPress 5.04 A super handy little tool to test the custom permalinks mess that can be created when adding custom rewrite rules. Really handy if you are generating dynamic (virtual) pages and URLs on the fly!
閱讀全部26個評價

貢獻者及開發者

“Monkeyman Rewrite Analyzer” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Monkeyman Rewrite Analyzer 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • First WP.org plugin repository release
  • Further code cleanup

0.5

  • Code cleanup
  • Added URL checker

0.2

  • Highlight non-public query vars
  • Highlight regex repeating groups

0.1

  • First version, mostly a test of my regex parsing skills