php - how to do a regular expression for the .htaccess file for tags in modx? -
i need regular expression next url:
sitio.com/blog/tag.html?tag=tecnology
convert to: sitio.com/blog/tag/tecnology
note: activated friendly urls modx.
here's better way using modx inbuilt functionality.
create plugin fires on onpagenotfound , parses 'not found' url (sitio.com/blog/tag/tecnology) format you're expecting (sitio.com/blog/tag.html?tag=tecnology). if parsed format matches existing modx resource can redirect it.
http://forums.modx.com/index.php/topic,41502.msg249684.html#msg249684
Comments
Post a Comment