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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -