Return to Snippet

Revision: 3380
at July 18, 2007 14:03 by ches


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

Revision: 3379
at July 18, 2007 13:51 by ches


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

Revision: 3378
at July 18, 2007 13:50 by ches


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

Revision: 3377
at July 18, 2007 13:45 by ches


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

Initial URL


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

Initial Title
htaccess one-liner for MT URL restructuring

Initial Tags
textmate, htaccess, apache

Initial Language
XML