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.