We Recommend

Beginning XML Beginning XML
The perfect resource for beginning XML programmers, this guidebook shows you what XML is, how to use it, and what technologies surround it. The authors build on the strengths of previous editions while covering the latest changes in the XML landscape such as XQuery, RSS and Atom, and Ajax.


Posted By

ches on 07/18/07


Tagged

textmate MT htaccess apache


Versions (?)


htaccess one-liner for MT URL restructuring


Published in: XML 


Build URLs for subcategories, e.g. 'cat-child-support.html' becomes '/family-law/child-support/'

  1. <MTHasParentCategory>
  2. RewriteRule ^cat-<$MTCategoryLabel dirifyplus="pld"$>.html$ <MTParentCategories glue="/"><$MTCategoryLabel dirifyplus="pld"$></MTParentCategories> [R=301,NC,L]
  3. </MTHasParentCategory>

Report this snippet 

You need to login to post a comment.