Warning: Creating default object from empty value in /home/design/public_html/wp-content/plugins/paged-comments/paged-comments.php on line 31
Internal Rewrite Viewer Plugin for WordPress · Dagon Design

Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.1   Updated Thursday, February 19th, 2009 at 7:19pm

Internal Rewrite Viewer Plugin for WordPress

This plugin has a very specific purpose – to generate a list of the current rewrite rules that WordPress is using. Unless you are writing WordPress plugins that support permalinks, this plugin will probably not be that useful to you. But if for whatever reason you need to check the rules (for debugging.. troubleshooting..) it will do the job nicely. Only newer versions of WordPress store the rules internally of course. If you have a much older version, the data will simply be in your .htaccess file.


  If you have found this page useful, please consider donating. Thanks!

Change Log

  • 02-19-09 Version 1.1 – Updated to work better with newer versions of WordPress
  • 03-19-06 Version 1.0 – Initial release


This plugin will only work if you are using custom permalinks (not the WordPress default), and have allowed WordPress to add the proper code to .htaccess


  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
  • Enable the plugin in your WordPress control panel.
  • Try it out by going to: http://(your wordpress install)/rewrites/
  • NOTE: If that link does not work for you, try this:
    http://(your wordpress install)/index.php/rewrites/
    The link for usage may vary depending on your permalink configuration.


Take a look at my rewrite page.

How it works

This plugin works by using a rewrite rule to generate a ‘fake’ page for the rewrite viewer. This is really only a call to the index with a new variable passed. When the index page detects this variable, it generates a list of the rules instead of the index page.

Of course for this plugin to work, you must be using permalinks, but if you were not, you would not be using this plugin anyway ;)

Pages: [8] 7 6 5 4 3 2 1 » Show All

  1. Thanks for information. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the excellent work. Obat Susah Kencing Di Apotik

  2. Thanks for the sare!

  3. Thanks for the plugin. Let me download it. :)

  4. Excellent article. Its really a good website. It gives me lots of pleasure and interest. It’s a most important blog post. So i want to know some other details about this article. Thanks.
    Obat Telinga Bernanah Di Apotik
    Cara Mengobati Gendang Telinga Bolong
    Cara Mengobati Luka Diabetes Yang Sudah Parah

Pages: [8] 7 6 5 4 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.

Be sure to wrap all code in <code></code> tags.