BWB ReWriter
The BWB ReWriter WordPress plugin is now available for download. This plugin is fairly specialized and fairly technical. It will provide you with an easy to use interface for building URL rewriting rules to be used with the WordPress ReWrite engine.
Why do I Need ReWrite Rules?
WordPress’ rewriter engine will take pretty URLs and turn them into Query Variables that you can use in your Code. So, note…if you’re not writing code to use URL variables, you probably don’t need this plugin.
But let’s have an example…say you want to have a pretty URL like:
www.mysite.com/travel/st-louis/the-arch/
To get that into a format that your CMS application can use, you need some rewrite rules to transform that the WordPress engine can translate. So while the user sees a pretty URL like the above, ultimately, you want the computer to read something like:
www.mysite.com/index.php?page=1&city=st-louis&destination=the-arch
Given the proper rewrite rule, WordPress will translate all of this into query variables that you can call in your code…the get_query_var() function would work like this:
get_query_var(‘city’) returns ’st-louis’
get_query_var(‘destination’) returns ‘the-arch’
Why did Byron get Crazy and Write a Plugin for this?
This has been a thorn in my side a couple of times now. Everytime I come back to this it takes me forever to figure it out.
Hopefully this will help out a few folks.
Cheers,
Byron


















Monday, 1 February, 2010 at 20:48
Great plugin Byron! You never stop! I will try to use it
(but dont worry… i will not bother you with questions!)
Cheers to you 2.