URL Rewrite – How to Rewrite Tags URL in Magento

tagsurlurl-rewrite

I had created tag called test in Magento but its default url is like tag/product/list/tagId/1/ but i need the url to be like the tag/test.

I tried magento-tag-url-rewrite-and-generate and magento-tag-url-rewrite, but it returns 404 page not found on accessing the url like tag/test.

Please Help Me.

Thanks in Advance

Best Answer

Take a look at this: https://stackoverflow.com/q/24608684/2047249.
You can find the code provided in the answer as an extension here: https://github.com/tzyganu/EasylifeTag.

The main idea is to create a custom router that handles the urls like tag/something and to rewrite the tag model so the urls generated will be tag/something instead of tag/product/list/tagId/1/

Related Topic