Jump to content

Different rewrite for tags


Recommended Posts

Hello,

 

At the moment module tags using search controller with $_GET param 'tag' so default rewrite (from backoffice -> Seo & URL) change it to value set in preferences.

I want to achive something like /tag/value structure in tag links instead of search query, but when I've added
 

RewriteRule ^tag/(.*)$ index.php?controller=search&tag=$1 [QSA,L]

It works well but another redirect (this default) change URL in browser to default rewrite.

My htaccess skills are not good enough so I wanted to ask question: How to achive rewrite like this one for tags instead of default one.

 

I know this description is a bit chaotic so if I need to clear something let me know.

 

Link to comment
Share on other sites

×
×
  • Create New...