News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Help with couple of mod_redirect rules after removing SE urls

Started by Ricky., September 23, 2015, 11:37:12 AM

Previous topic - Next topic

Ricky.

On one of the forum, we have ditched SE urls , have taken care of most of the part for 301 redirect ie. threads etc. but that forum also have tags mode and I am stuck on this.. wants to do following:

redirect: (old url)
domain.com/talk/tags/sample.html   (sample is tag)

To  (new)

domain.com/talk/tags.php?tag=letter


I tried this

RewriteRule tags/([^/]+)\.html /tags.php?tag=$1 [L,R=301]

But its not working.

My forum is at :
domain.com/talk

And I am adding above rule in domain.com/talk/.htaccess  with "RewriteBase /talk/" .
This is where I have added thread redirection code which works fine.

Advertisement: