 <p>Here's a better way to do this using MODX inbuilt functionality. </p> <p>Create a plugin that fires on OnPageNotFound and parses the 'not found' url (sitio.com/blog/tag/tecnology) into the format you're expecting (sitio.com/blog/tag.html?tag=tecnology). If the parsed format matches an existing MODX resource you can then redirect to it.</p> <p><a href="http://forums.modx.com/index.php/topic,41502.msg249684.html#msg249684" rel="nofollow">http://forums.modx.com/index.php/topic,41502.msg249684.html#msg249684</a></p>