zem_rewrite

Clean, configurable URLs for Textpattern.

When used in conjunction with an appropriate Rewrite rule, zem_rewrite will produce and parse clean, configurable URLs. It eliminates the need for uploading section placeholder files and editing .htaccess when sections are created. By reconfiguring the URL strings, the plugin will generate and accept flexible URL schemes for article, section and category links, e.g.:

  • /section/category/25/my-article-title
  • /section/2004/09/28/25/my-article-title
  • /section/2004/09/28/category/25/my-article-title
  • /section/25/

Download latest version: zem_rewrite-0.6.txt
Online docs: zem_rewrite documentation

Changes in version 0.6

  • Strip ‘default’ from links
  • Fix category link scheme
  • Support spaces in category names

Changes in version 0.5

  • Added a simple 404 handler for non-matching URLs
  • Fixed a default section bug in the zem_permlink tag

Changes in version 0.4

  • Add support for url_title (undocumented)

Changes in version 0.3

  • More rewrite rules for different server configs
  • Improved compatibility


I must say this is very helpful, much easier than all the Uploading files needed in normal URL rewrites

— SteveC    Dec 6, 12:23 am    #

Brilliant… I finally got true clean URL’s working without editing any TXP native files.

Thank you so much for your effort.

qrayg    Dec 8, 04:59 am    #

Hello,

I tried to download the plugin, but the content of the file looks like this:

$plugin='YTo4OntzOjc6InZlcnNpb24iO3M6MzoiMC41IjtzO (...)

Roman Röhrig    Dec 12, 12:13 am    #

Yes!!!!

Great updates on version 0.5!!! I really appreciate the effort you put into this plugin. My site functions 98% the way I want because of this plugin.

The only suggestion that I could offer is to make {section}/{url_title} work. Maybe this is a limitation in TXP.

qrayg    Dec 12, 05:42 am    #

Is it possible to use two categories in the URL? I’ve played with it a bit and can’t quite figure it out. Or maybe it’s a limitation? Maybe for the next release. :)

Max Ruderburg    Dec 19, 10:58 am    #

It seems your wonderful plugin has saved me from a lot of hassle. Thank you, thank you, thank you!!!

echo    Jan 7, 09:02 am    #

Any documented case of getting clean urls to work with IIS?

— Matt    Feb 24, 01:15 pm    #

:( I can’t get to my .htaccess file, so I can’t use this plugin?!

Pat    Feb 28, 06:53 am    #

Commenting is closed for this article.