I am trying to redirect from source url to target url using regex but it didn't work. Here i describe my problem -
Source URL:
http://example.com/forums/forum/lisa-goran-bygger-hus-t5075/
Target URL:
http://example.com/forums/details/lisa-goran-bygger-hus/
want to redirect without -t5075 from url.
htaccess rewrite rule is:
RewriteRule ^/forums/forum/([a-z-]+[^-t0-9]) /forums/details/$1 [R=301,L]
this isn't work its redirect to me -
http://example.com/forums/details/lisa-goran-bygger-hus-t5075/
Here regex online tester link -
http://www.regextester.com/?fam=97698
What i am doing wrong can someone help me out and explain about this problem.
Thanks