XF 1.5 Old url 301 to xenforo url

Biarritz64

Active member
hi,
i use old url from a phpbb2 forum and i want to 301 to xenforo

old url
xttp://xxx.mysitexx.com/forum/thread title-vt2871.html

new xenforo url
xttps://xxx.mysitexx.com/thread/2871/

how can i extract the id from url (number)
thank you for your help
ps i use nginx
 

CvP

Member
This should work (untested)
Code:
rewrite ^\/forum\/.+\-vt(\d+)\.html$    /thread/$1/ permanent;
 
Top